Search:

Type: Posts; User: LanguidLegend

Search: Search took 0.01 seconds.

  1. Can you give me an example of how to build an...

    Can you give me an example of how to build an output buffer then write it to the screen? Sorry for my inexperience..
    Thanks!
  2. Yes I thought about that, but once I process a...

    Yes I thought about that, but once I process a character via getchar(), I can't revisit it.
    Which is why I was trying to make a char array (ie: a string) to store each line before exiting the while...
  3. Thanks everybody, I think I understand the issue...

    Thanks everybody, I think I understand the issue much better now.

    SO this boils down to the ultimate goal of my program, to parse bracketed tags (opening & closing tags like in XML), and return...
  4. Why does it return an int? Is there a function...

    Why does it return an int?
    Is there a function that can read a line from standard input (ie: keyboard input) and save it as a string? That's really what I need to make this program function..
  5. Thanks for the quick reply. So how would I go...

    Thanks for the quick reply.
    So how would I go about using malloc(), and how much space should I allocate?

    To give you an idea, this is what I am looking to parse (one line at a time):

    <level1>...
  6. Segmentation fault when appending to strings (char *)

    So I'm trying to implement this simple program which essentially parses a simple (untabbed, simple tags) XML file and returns it in a tabbed format, but I've been stuck on trying to append to a...
Results 1 to 6 of 6