1 changed files with 0 additions and 11 deletions
@ -1,11 +0,0 @@ |
|||
#include <stdlib.h> |
|||
#include <stdio.h> |
|||
|
|||
int main(void) { |
|||
char *foo = malloc(20); |
|||
snprintf(foo, 5, "%s", "1234"); |
|||
char *bar = foo; |
|||
*foo++ = *bar++; |
|||
printf("%s\n", foo); |
|||
return 0; |
|||
} |
Reference in new issue