Return
Styles:
Pseud0ch
,
Terminal
,
Valhalla
,
NES
,
Geocities
,
Blue Moon
.
Entire thread
It's 2015 and Linus still doesn't know what a C string is
1
Name:
Anonymous
2015-05-09 1:49
https://lkml.org/lkml/2015/4/28/570
26
Name:
Anonymous
2016-11-13 7:11
>>25
READ DA FUCKING STANDARD!!
strncpy(d, s, n)
always writes n characters and pads with zeroes if necessary. However, it doesn't write a terminating NUL, when
strlen(s) >= n
. There are some easy fixes to this, though.
Newer Posts
Don't change these.
Name:
Email:
Entire Thread
Thread List