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

a9 strcat() and memset()



> ... when I test my strcat function, I get a weird output:
>    strcat flunked test 10
>    n1=0, n2=0, n3=0, buf1=31,32,33,00,...

Your strcat() is fine, the problem must be with your memset(), which the strcat() test uses.

So, fix memset() and then your strcat() should work fine.