OSDN Git Service

sizeof("string") treats it as a char array _including_ the null terminator, so strncm...
authorRob Landley <rob@landley.net>
Sat, 10 May 2014 18:24:58 +0000 (13:24 -0500)
committerRob Landley <rob@landley.net>
Sat, 10 May 2014 18:24:58 +0000 (13:24 -0500)
commit5369517b2cd0437a603ab7b33b499062804ae141
tree242e30c8b5aec0314a7b90c92aba7c56c5a9c454
parent6ef8ce45ae3adae2bd6a36781a6d7f60122548f2
sizeof("string") treats it as a char array _including_ the null terminator, so strncmp(dest, "string", sizeof("string")) is just strcpy.
toys/pending/last.c