User Profile

Collapse

Profile Sidebar

Collapse
rethab
rethab
Last Activity: Apr 5 '10, 10:06 AM
Joined: Apr 4 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • rethab
    replied to fgets / buffer issue
    in C
    Thank you for your detailed response, Banfa. I'll fix that.

    Regards,
    rethab
    See more | Go to post

    Leave a comment:


  • rethab
    replied to Displaying a string
    in Java
    the last character on the line where you initialize 'output' is a +. remove it!
    See more | Go to post

    Leave a comment:


  • rethab
    started a topic fgets / buffer issue
    in C

    fgets / buffer issue

    Hi there

    I'm facing some issue which I can't identify.
    I have a structure 'album'. I try to read two albums from standard input. The first one works perfectly fine, but on the second one, it appears like this:

    somehow, I can't enter a title, since 'band:' is already there..

    I use this function to read an album:
    Code:
    void read_alb(struct album *alb) {
      char buffer[MAX];
    ...
    See more | Go to post
No activity results to display
Show More
Working...