Program C functions

Something C related functions

  1. Assign string to variable
FuncHeaderDescription
sprintfstring.hassign format string to variable. sprintf(str, “%s %s\n”, s1, s2)
strncpystring.hcopy string from a variable to another. strncpy(str, source, length)