User Profile

Collapse

Profile Sidebar

Collapse
kreuzen
kreuzen
Last Activity: Aug 2 '08, 01:36 AM
Joined: Aug 1 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • kreuzen
    replied to how to use strtok()?
    in C
    Strtok() basically tokenizes your string (string tokenizer function). You input a string and specify the delimiters to where it should be split.

    So for example, if you have

    char string[1024] = "I,know,how,to, use,strtok"; (delimiters are the commas)
    char delim[512] = ",';

    Output:
    I
    know
    how
    to
    use
    strtok

    then you put strtok(string,...
    See more | Go to post

    Leave a comment:


  • kreuzen
    started a topic Range validation in C
    in C

    Range validation in C

    Hi everybody,

    I'm trying to write a program that checks what the minimum and maximum number out of all the range numbers given.
    Example: 1-10, 2-20, 3-30
    min = 1
    max = 30
    There are also special cases where the range can be:
    -20 (this is from 0 to 20)
    or
    20- (this is from 20 to the highest number possible, which is INT_MAX).

    If I type in the "20-" range, it only...
    See more | Go to post
No activity results to display
Show More
Working...