avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] Fix for strstr.S (revision 2)


From: Philip Søeberg
Subject: [avr-libc-dev] Fix for strstr.S (revision 2)
Date: Tue, 10 Dec 2002 18:56:27 +0100

A bug was found in the previous strstr.S :(

Mikael (address@hidden):
>>Try to use the string "abcdecdefg" and then search for "def". It will
>>fail. Probably because it finds the first "de" but not the "f". And for
>>some reason it doesn't find the second "de" (with the "f") afterwards.

This has now been fixed among other issues, such that this version work
quite fine :)

It fully supports the ANSI C3.159-1989 standard:
        If s2 is found within s1, pointer to first occurrence in s1 is
returned.
        If s2 is NOT found withing s1, NULL is returned.
        If s2 is empty, s1 is returned.

It has been tested with mega103/128 and at90s8515/8535 using AStudio3.55.

Regards.
-=[ Philip Soeberg ]=[ address@hidden ]=-


Attachment: strstr.tar
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]