Search:

Type: Posts; User: fgw_three

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    20
    Views
    2,416

    I think one thing that a lot of folks might...

    I think one thing that a lot of folks might overlook in this is that some of us routinely read and post from work. When I'm at home I wanna spend time with my kids and not necessarily helping...
  2. Replies
    13
    Views
    3,127

    Agreed.... I've got a bastardized style that I...

    Agreed....

    I've got a bastardized style that I use: I'll put the brace on the end of the beginning line of an if, for, while, switch (etc) statement. But when I'm doing function blocks, the...
  3. Replies
    13
    Views
    2,482

    Search this board....

    Also, try searching this board.

    I seem to recall a post about ISBN parsing posted to the board within the last year.....
  4. Replies
    13
    Views
    2,515

    To paraphrase Forrest Gump, "safe is as safe...

    To paraphrase Forrest Gump, "safe is as safe does" :)

    Seriously, I agree with you. If you're in a situation where your data might be truncated anyway, then it is safer to have it null terminated...
  5. Replies
    1
    Views
    1,230

    We had this one in here last week as I recall.......

    We had this one in here last week as I recall....

    Dig around -- I can't remember if much advice was given, but what was given should still be here on the board.
  6. Replies
    13
    Views
    2,515

    Maybe try strlcat...

    I believe the variants of BSD Unix have a "safe" strcat called strlcat (and there is a companion strlcpy) both of which are guaranteed to truncate AND null terminate instead of overflowing.

    You...
  7. Replies
    19
    Views
    2,911

    Do a google on "secure programming in C" and...

    Do a google on "secure programming in C" and you'll probably find a bunch of useful information on which C functions can be misused by the programmer and subsequently abused by the bad guys.
  8. Perhaps it is a minor nit, but the type of the...

    Perhaps it is a minor nit, but the type of the fopen return value is not long, but FILE *.
  9. Replies
    10
    Views
    18,442

    Out of curiosity

    Out of curiosity, why is it that you have to use "touch"?
  10. Replies
    15
    Views
    2,015

    GI Joes and Pointer CONVERSION

    When I was a kid (and this will definitely show that I'm as old as the hills), GI Joe was about a foot tall. Later on, they made him into a little action figure.

    I didn't have many GI Joes.... my...
  11. Replies
    10
    Views
    1,705

    You're not sending it to another function. In...

    You're not sending it to another function. In menu, you're just declaring a multi-dimensional array that has absolutely nothing to do with your origina choice array.

    You need to actually pass...
  12. Replies
    17
    Views
    45,003

    Like I said, I was stealing cycles from some real...

    Like I said, I was stealing cycles from some real work.;)

    I never thought about Salem's point of no potential divisor being greater than the square root, and I never actually fired the program up...
  13. Replies
    17
    Views
    45,003

    Because you seem about at wits end, here's...

    Because you seem about at wits end, here's something that might work....



    I think that should work. I'm winging it while I'm doing real work :) here today.... It'll get you closer if it...
  14. Replies
    3
    Views
    1,996

    Probably, but that doesn't make you a bad...

    Probably, but that doesn't make you a bad person....:)
  15. Replies
    17
    Views
    45,003

    Actually, you only need to divide the number by a...

    Actually, you only need to divide the number by a number between 2 on the lower end and number/2 on the upper end. Dividing by anything more than number/2 is just a waste of cycles....
  16. Replies
    7
    Views
    4,349

    I don't believe any of them are online. I did...

    I don't believe any of them are online.

    I did find the 2nd edition on Amazon for approximatley $65. If you're going to program in a *nix environment, I'd recommend getting it.

    Actually,...
  17. Replies
    7
    Views
    4,349

    Prelude, Thanks for the update. Stevens...

    Prelude,

    Thanks for the update. Stevens books have always been a very helpful part of my reference shelf, and I was dismayed that he wouldn't be around to bring them up to date.

    I'll...
  18. Replies
    7
    Views
    4,349

    As I recall there's a book by the late W....

    As I recall there's a book by the late W. Richard Stevens called "Advanced Programming in the Unix Environment."

    It has been a while since I picked it up, but as I recall, among other things, it...
  19. Replies
    47
    Views
    8,210

    And horsecrap put in a pretty bag with a bow on...

    And horsecrap put in a pretty bag with a bow on it is still horsecrap.

    You're certainly not making it easier for folks trying to help you.....
  20. Replies
    47
    Views
    8,210

    There's a program on Linux (and other Unix...

    There's a program on Linux (and other Unix systems) called "cdecl" which can help with C declarations.

    Here's what I got with your line:

    cdecl> explain int (* array[3]) (int sUP3r) (int blue);...
  21. Replies
    47
    Views
    8,210

    As Prelude told you earlier, take a look at the...

    As Prelude told you earlier, take a look at the coding style of some of the folks who've been around here for a while -- Salem and Dave_Sinkula come to mind, among several others.

    Why is coding...
  22. Replies
    10
    Views
    9,507

    C++ not a pre-req for Perl

    Also, FWIW, you don't need to know C++ to code Perl.

    I picked up Perl before I moved into the C++ world, but I had been a C programmer for quite a long while.

    If you want to learn Perl, pick up...
  23. Thread: exit(-3)

    by fgw_three
    Replies
    6
    Views
    4,463

    Wow -- the good old days

    Darn, Salem, you beat me to it.

    I cut my "C teeth" on VAXen, and when I switched to Unix (well, DEC's Ultrix at that time) it felt strange to look for 0 for success and 1 for failure.

    I believe...
  24. Thread: c and html

    by fgw_three
    Replies
    21
    Views
    4,961

    more.....

    BTW, there are other errors with your program.....



    char fileName;
    char buf[BUFSIZ];
    char *p;

    printf("what do you want the .html file to be saved as?");
    if...
  25. Thread: c and html

    by fgw_three
    Replies
    21
    Views
    4,961

    You cannot use print format specifiers (i.e....

    You cannot use print format specifiers (i.e. "%s") in the file name argument to fopen.

    What itsme86 was saying was to create the filename string, using sprintf, and then pass that string as an...
Results 1 to 25 of 125
Page 1 of 5 1 2 3 4