New answers tagged strcpy
0 votes
How to get GCC to inline strcpy (string copy)
Another option - which can be relevant for the cases that the actual strcpy are for short string, and the benefits of the avoiding the calls is significant - is to implement "light weight" ...
0 votes
How to get GCC to inline strcpy (string copy)
For string of unknown length - inlining strcpy can be complex - different strategies can optimized for different cases (long string, vs short string, different architecture, ...) It's easier to get ...
Top 50 recent answers are included
Related Tags
strcpy × 959c × 736
string × 237
c++ × 178
arrays × 134
pointers × 126
struct × 74
char × 72
segmentation-fault × 71
c-strings × 67
strcat × 64
malloc × 61
strncpy × 38
strtok × 32
memcpy × 31
strcmp × 24
printf × 21
gcc × 17
memory × 17
function × 16
buffer-overflow × 16
linked-list × 13
valgrind × 12
dynamic-memory-allocation × 11
undefined-behavior × 11