strsep Questions

3

Solved

Could someone explain me what differences there are between strtok() and strsep()? What are the advantages and disadvantages of them? And why would I pick one over the other one.
Calutron asked 28/8, 2011 at 2:11

3

Solved

I want to parse a string, and I use strsep function: #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { char str[] = "Marco:Q:2F7PKC"; char *token1, *tok...
Infeld asked 27/1, 2014 at 14:13

3

Solved

#include <stdio.h> #include <string.h> int main() { char *slogan = "together{kaliya} [namak]"; char *slow_gun = strdup(slogan); char *token = strsep(&slow_gun, "{"); printf ("\n...
Lykins asked 28/7, 2011 at 21:29
1

© 2022 - 2024 — McMap. All rights reserved.