Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- #include <stdlib.h>
- int main(void){
- char *ptr = malloc(6);
- const char *name = "MICHI";
- unsigned int i = 0;
- if(ptr){
- strcpy(ptr, name);
- ptr[strlen(ptr)] = '