just a random quetion about strings in C
by - Thursday, January 1, 1970 at 12:00 AM
ok so whats the difference between char* stringname and char stringname[] ?
where do i risk overflows ? and why ?
Reply
char* is a pointer to a character and char stringname[] is an array of characters
buffer overflows aren't intrinsic to the types you mentioned, a lot of them happen with insecure functions like gets
if the array is larger than the buffer you get a buffer overflow
Reply


 Users viewing this thread: just a random quetion about strings in C: No users currently viewing.