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.
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...
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...
1
© 2022 - 2024 — McMap. All rights reserved.