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
source
share