fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char msg[]="1 I can go";
  5. char *rmg;
  6. rmg=malloc(strlen(msg));
  7. if(msg[0]=='1')
  8. strncpy(rmg,&msg[1],strlen(msg)-1);
  9.  
  10. printf("%s",rmg);
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 2288KB
stdin
Standard input is empty
stdout
 I can go