Search:

Type: Posts; User: catacombs

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    118

    My regex was not wrong. As laserlight pointed...

    My regex was not wrong. As laserlight pointed out, strtok doesn't take regular expressions, and that was why I didn't get the expected output.



    I already provided code. Run my example.
  2. Replies
    10
    Views
    118

    Yeah, after doing more research after posting it,...

    Yeah, after doing more research after posting it, the only thing I've found was the pcre library, but that doesn't do the intended split. If you have a third-party library I don't know about, I'm all...
  3. Replies
    10
    Views
    118

    Split string with regular expression

    I'm trying to split this string:


    "SPEAKER: Hello there, my friend. SPEAKER2: How are you, friend?"

    into an array.

    I know to use the strtok function from the strings header file, but I'm...
  4. Replies
    13
    Views
    231

    Exactly! One day you might not think of anything....

    Exactly! One day you might not think of anything. Then, while you're working, you'll think, "Man, I wish I could just do this with one command," and boom, there's your idea.
  5. Replies
    17
    Views
    236

    An Introduction to C and GUI Programming...

    An Introduction to C and GUI Programming might be what you're looking for.
  6. Replies
    13
    Views
    231

    Hi, Scatman. I am in the same boat as you. I...

    Hi, Scatman.

    I am in the same boat as you. I now understand the basics of C and hoping to improve my skills.

    One thing that helped me to better understand the language is writing small programs...
  7. Lmao. I'm dead. Salem does have a point. Let's...

    Lmao. I'm dead.

    Salem does have a point. Let's see the code.
  8. Replies
    19
    Views
    428

    I thought copying, but that can only be done, it...

    I thought copying, but that can only be done, it seems, with strcpy.
  9. Replies
    19
    Views
    428

    I'm learning C just like you, homie.

    I'm learning C just like you, homie.
  10. Replies
    19
    Views
    428

    Thanks, Salem. I didn't know assigning character...

    Thanks, Salem. I didn't know assigning character arrays to pointers was possible. What I've always done was use strcpy to assign them.
  11. Replies
    6
    Views
    616

    YOU!

    YOU!
  12. Replies
    1
    Views
    124

    From a Stack Overflow answer...

    From a Stack Overflow answer:

    tm_isdst A flag that indicates whether daylight saving time is in effect at the time described. The value is positive if daylight saving time is in effect, zero if...
  13. Replies
    29
    Views
    880

    I always try to write a program that can make a...

    I always try to write a program that can make a task easier. I've rewritten a lot of scripts I wrote in Python as practice. One of them, for example, is a unit converter: I give it a starting unit...
  14. Replies
    4
    Views
    181

    You don't need to allocate memory on line 12. You...

    You don't need to allocate memory on line 12. You can set the character array size on line 5.
  15. Replies
    11
    Views
    219

    This should be the least of your concerns.

    This should be the least of your concerns.
  16. The code is still in some weird serif font. It...

    The code is still in some weird serif font. It makes the code hard to read.
  17. Replies
    29
    Views
    880

    Yes.

    Yes.
  18. Replies
    29
    Views
    880

    Try automating your daily tasks with C programs.

    Try automating your daily tasks with C programs.
  19. Replies
    21
    Views
    321

    FYI: I saw this exact question in Dream.In.Code....

    FYI: I saw this exact question in Dream.In.Code. Yet another help vampire.
  20. Replies
    10
    Views
    284

    powers, are you writing this program in C or C++?

    powers, are you writing this program in C or C++?
  21. Replies
    12
    Views
    164

    Make three separate programs, one each method....

    Make three separate programs, one each method. They must sort a random array of a 1,000 numbers. Then run `time ./program1`, `time ./program2` and `time ./program3` and compare how long they take.
  22. That's a great tip.

    That's a great tip.
  23. Thread: NULL caseses

    by catacombs
    Replies
    13
    Views
    209

    Same reason you check if your foot isn't on the...

    Same reason you check if your foot isn't on the gas before shifting into reverse.
  24. Thread: NULL caseses

    by catacombs
    Replies
    13
    Views
    209

    One more, and I think we'll be good ;)

    One more, and I think we'll be good ;)
  25. Replies
    6
    Views
    267

    I'm curious to see how this will play out. My...

    I'm curious to see how this will play out.

    My rule of thumb: If it needs to be on the web, stick with HTML/CSS/JavaScript. Anything else seems like way too much work.
Results 1 to 25 of 54
Page 1 of 3 1 2 3