Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6331037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:58:58+00:00 2026-05-24T17:58:58+00:00

Let assume we have such URL: dvb://1.3f3.255c.15 my question is how to parse this

  • 0

Let assume we have such URL:

dvb://1.3f3.255c.15

my question is how to parse this address in following way:

val1 = 1
val2 = 3f3
val3 = 255c
val4 = 15

First idea is to use strchr() from standard C library, but maybe done it before. I would like to make it as simple as possible. When I will succeed I will put my solution.

Best Regards

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T17:58:59+00:00Added an answer on May 24, 2026 at 5:58 pm

    You could use strtok

    char dvb_url[] = "dvb://1.3f3.255c.15";
    
    //Begin stripping the scheme (dvb:/)
    char *tokenized = strtok(dvb_url, "/");
    //Finish stripping scheme
    tokenized = strtok(NULL, "/.");
    
    while(tokenized != NULL)
    {
        //Store in variable here            
        printf("%s\n", tokenized);
        tokenized = strtok(NULL, ".");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's assume we have the following structure: index.php config.inc.php \ lib \ lib \
Let's assume I have the following code: public class MainClass { public static void
Let's assume we have the following method in the business layer. What's the best
I have a question about cascading deletes and foreign key references: Let's assume the
Let's assume I have two service classes with the following methods: GroupService createGroup() deleteGroup()
I have a question regarding primary keys in Relational Databases. Let's assume that I
So let's assume I have a JSON file as such: { store: { book:
Let's assume that I have a method in class like this: - (void)doSomethingOnlyWhenNeeded {
Let's assume I have a class to be used as a decorator like such:
Let's assume we have the following Map index: public class CommentsIndex : AbstractIndexCreationTask<Post> {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.