Aspects


vs


Printf

`printf` is a common function for formatted output

Strdup

The strdup() function duplicates a string

Others

Quality Example
Faster

"Doing a single printf and strdup is faster and simpler than doing 2-3 printf calls"

from question "Can't copy string to an array of strings in C"

Back to Home
Data comes from Stack Exchange with CC-BY-SA-3.0