Search:

Type: Posts; User: Ene Uran

Search: Search took 0.00 seconds.

  1. Replies
    29
    Views
    11,348

    Just to be different: // an asm wait to mimic...

    Just to be different:

    // an asm wait to mimic getch()
    void wait()
    {
    asm mov dx,3DAh
    l1:
    asm in al,dx
    asm and al,08h
    asm jnz l1
  2. Replies
    12
    Views
    1,705

    I think it should be: ...

    I think it should be:

    memset(string,'\0',strlen(string)-1);
  3. Replies
    4
    Views
    3,024

    Remember ctrl-z sends EOF (EndOfFile) in windows,...

    Remember ctrl-z sends EOF (EndOfFile) in windows, and ctrl-d in Linux. I looked up the code on page 29 of my 1978 edition of K&R, you did quite a few modifications to make this thing work.
  4. Replies
    9
    Views
    3,364

    Glad you brought it up! I am the same way, just...

    Glad you brought it up! I am the same way, just don't want to admit it!
  5. Replies
    13
    Views
    2,902

    Asking folks to ask a smart question is...

    Asking folks to ask a smart question is deductively stupid. Asking somebody to ask a thorough question is more like what you want.
  6. Replies
    9
    Views
    3,364

    You are absolutely hairsplitting right Kermit. ...

    You are absolutely hairsplitting right Kermit. In this case there will be most likely a newline in the string, unless your name is 500 characters long.
  7. Both these functions are not totally safe. The...

    Both these functions are not totally safe. The return key causes the problem. Scanf() leaves a newline hanging in your input buffer. The hanging newline character is then possibly picked up by the...
  8. Replies
    9
    Views
    3,364

    fgets() also adds a newline to the end of your...

    fgets() also adds a newline to the end of your input string, something you might have to deal with.

    // secure string input, fgets() replaces gets() and scanf()

    #include <stdio.h> // BUFSIZ...
  9. Replies
    5
    Views
    7,971

    So what do you do about it?

    So what do you do about it?
  10. Replies
    6
    Views
    1,100

    Is test.bmp in a folder that has a space in it? ...

    Is test.bmp in a folder that has a space in it? Sometimes that creates problems with certain versions of Windows.
Results 1 to 10 of 10