fork(5) download
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main(void) {
  5. char texto[] = "1234567890abcdefghijklm";
  6. int posicao = 15;
  7. int final = sizeof(texto) - posicao;
  8. char parte[final];
  9. memcpy(parte, &texto[posicao], final);
  10. printf("%s", parte);
  11. }
Success #stdin #stdout 0s 2168KB
stdin
Standard input is empty
stdout
fghijklm