demostene.ro
RSSTwitterFacebookYoutube
  • Welcome
  • Download
  • Despre
  • Carti
  • Creioane
  • Blog
E Septembrie… Guano Apes @ Tuborg Green fest

strtok

On September 4, 2009 · 1 Comment · In programare
 char str[] ="- Demostene, cand nu bea ceai, bea bere Leffe.";
  char * pch;
  pch = strtok (str," ,.-");
  while (pch != NULL)
  {
    printf ("%sn",pch);
    pch = strtok (NULL, " ,.-");
  }

Cum arata sirul str la final?

Explicatie:

Fiecare caracter din ” ,.-” care se gaseste in str este inlocuit cu caracterul ”.
Stiu, nu intereseaza pe nimeni, asta era doar asa ca sa tin eu mai bine minte.

Tagged with: c • programare • strtok 
Trimite linkul pe Facebook sau Twitter
FacebookTwitter
  • Mihai

    eu cand nu beau vin, beau…bere

  • Categorii

    • de zi cu zi
    • din IT
    • interesante
    • ma enerveaza…
    • muzici
    • programare
    • roc bluz giaz
    • zambete
  • Comentarii recente

    • Remus Sinorchian on Astazi sunt sub scut
    • demostene on Astazi sunt sub scut
    • Remus Sinorchian on Astazi sunt sub scut
    • demostene on Astazi sunt sub scut
    • Remus Sinorchian on Astazi sunt sub scut
  • Arhiva

  • D-ale lui Demostene

    • Plimbari
    • Probleme de logica
    • Sa mai si radem…
  • Sustin

  • the world photo tour

    Un roman merge pe jos prin toata lumea! Tu ai scris despre el ?

    theworldphototour.com

Some interesting facts about tungsten http://t.co/ivZbbtmY  — demostene

Blogroll

  • Adi
  • Cristina
  • Ghizuroi
  • Oana
PageLines by PageLines