【新人求助】:用指针实现strcpy
如何编写程序用指针实现strcpy#include<stdio.h> char* mystrcpy(char* dest, char* source) { if(dest == NULL || source == NULL){ return NULL; } while(*dest++ = *source++){ ; } return dest; } int main(void) { char dest[100]; char* source = "hello world"; mystrcpy(dest, source); printf("%s\n", dest); return 0; }