Search:

Type: Posts; User: rabidbadger

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    2,945

    What code do you have so far? Post it up, even if...

    What code do you have so far? Post it up, even if all it does is handle the command line options.
  2. Replies
    14
    Views
    3,452

    The full K&R source is linked to from the page I...

    The full K&R source is linked to from the page I linked earlier, which is why I -- like tabstop -- am confused about what the OP was after...
  3. Replies
    14
    Views
    3,452

    A cut 'n' paste from one of these examples...

    A cut 'n' paste from one of these examples might save you some finger time. But it's often easier to learn if you have to type it all yourself ;-)
  4. Replies
    14
    Views
    4,569

    I suspect that vart is right. Try reading your...

    I suspect that vart is right. Try reading your file using (e.g.) fgetwc() -- which does the legwork for you -- and see if it still looks 'wrong'.
  5. Replies
    13
    Views
    1,539

    With all respect, '-u' is the only option that...

    With all respect, '-u' is the only option that POSIX insists that cat supports. You can, of course, choose to program your utility any old way you like, but why are you wanting to repeat the abuse of...
  6. Replies
    13
    Views
    1,539

    How are you intending to deal with the '-u'...

    How are you intending to deal with the '-u' option if you're using fgets()...?
  7. I'm sure that you realise your functions...

    I'm sure that you realise your functions largest() and smallest() won't actually print any (valid) values as your main function stands? If you want them to, try passing the value to be printed into...
  8. Replies
    8
    Views
    1,866

    Erm, that code won't actually do what the OP...

    Erm, that code won't actually do what the OP asked for. It will output up to the line with the search string in, the line with the search string in, the same line with the string replaced, and then...
  9. Replies
    11
    Views
    1,620

    It's not illegal at all. Look up "Digraphs and...

    It's not illegal at all. Look up "Digraphs and trigraphs" on Wikipedia.
  10. It might be blatantly obvious, but after backing...

    It might be blatantly obvious, but after backing up the original I'd run the whole lot through some kind of code formatter/beautifier to get the source into a consistent and readable format (if it...
  11. And if you are a newbie reading through K&R, it...

    And if you are a newbie reading through K&R, it might be handy to do so with these extra notes by your side.
Results 1 to 11 of 11