Test suite string.c

For practice, I decided to rewrite string.c in C. I cannot find online (through google or other search engines) a set of tests for everything standard or specifically for string.h

In particular, I want to see if my strcat (), strncat (), strchr (), strrchr (), strcmp (), strncmp (), strcpy (), strncpy (), strlen () and strstr () will match ISO / IEC 9899: 1990 (`` ISO C90 '').

Can you recommend a good way to test these features?

edit: the heading and paragraph above used to express string.h - I meant string.c

+3
source share
2 answers

. IIRC, Rogue Wave . , , , .

GNU , . , string.h. , . , , , .

+2

P.J. Plauger, C ( ) , , - , , .

+4

Source: https://habr.com/ru/post/1726879/


All Articles