Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //https://wandbox.org/permlink/Ljstos87j6BjbZia
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- /*-------------------------------------------------------------------------------*/
- int main( int argc, char **argv )
- {
- char buf[]=" Icaro es hijo del arquitecto Dédalo, constructor del laberinto de Creta,";
- char *pt;//Puntero a un char
- while ( buf[0] <=32 && (pt=strchr(buf,32)) !=NULL )//Puntero sobre la primera ocurrencia de 32 ESPACIO
- {sprintf (buf,"%s",pt+1) ;}//Copia del puntero en adelante
- printf ("%s\n",buf);
- return 0;
- }
Add Comment
Please, Sign In to add comment