Sunday, 18 November 2018

c - Why does strncpy() return a pointer

Why does strncpy() return a pointer, when char *dest gets assigned anyway?



Is this simply a design decision to make it more flexible?

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print ...