Discussion in 'C' started by boatcatx, Mar 13, 2014.
Is there a way with no loop to copy say 5 copies of 'r' to a string? I don't see one.
can you use memset? Code: char buffer[6] = { 0 }; memset(buffer, 'r', 5); puts(buffer);
char buffer[6] = { 0 }; memset(buffer, 'r', 5); puts(buffer);
Separate names with a comma.