Search:

Type: Posts; User: Ezzetabi

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    2,186

    Listing files in C

    I'd like programming a simple firewall.
    This program should read a rules file, and every second check all the files /proc/[1-9][0-9]*/exe (executable file name) and /proc/[1-9][0-9]*/stat (process...
  2. Replies
    2
    Views
    1,713

    WOW, it is *really* great. Thanks a lot.

    WOW, it is *really* great. Thanks a lot.
  3. Opening completly a namespace in the global scope...

    Opening completly a namespace in the global scope is not a such good idea.
    Consider using the using namespace directive inside the main block

    or just using using std::cout and using std::endl
  4. Actually "A" is a nameless const char[] of size...

    Actually
    "A" is a nameless const char[] of size 2.
    'A' is a nameless const char.
  5. Replies
    2
    Views
    1,713

    Saving .IMA files...

    Lately I am messing up with bootdisks and I'd like coding a small command line application that takes as parameter
    a folder,
    a .bin file as boot sector,
    a size type (1.44MB or 2.88MB essentialy),...
  6. Thanks for nothing.

    Thanks for nothing.
  7. Replies
    10
    Views
    6,419

    DJGPP is the compiler I use. Thanks for the...

    DJGPP is the compiler I use.

    Thanks for the links Codeplug! :) I imagined I had to use asm(), but seeing someone other job will surely help.

    I have to make a dos app for the first part of...
  8. Wiki is wrong. If it was correct it would mean...

    Wiki is wrong.
    If it was correct it would mean that remainder is not unique.

    7 % 3 -> 1 or -2 ?
    13 % -4 -> 1 or -3 ?
    -4 % 3 -> 2 or -1 ?
    -6 % -4 -> 2 or -2 ?
    Remainder IS positive.

    If...
  9. Replies
    10
    Views
    6,419

    I know that registry trick, but as you said it...

    I know that registry trick, but as you said it wont help for my DOS need. :|
  10. Replies
    17
    Views
    2,217

    It is just about personal preference. Bohn...

    It is just about personal preference.
    Bohn Jacopini proved that EVERY loop can be made just with while() and eventually break statements so do<% %>while() and for(;;) are unneeded.
    But as Fol...
  11. Replies
    10
    Views
    6,419

    Thanks Daved. So there is no solution... :|

    Thanks Daved. So there is no solution... :|
  12. Thread: HTTP Server?

    by Ezzetabi
    Replies
    9
    Views
    2,252

    It depends what you have to do. If you need...

    It depends what you have to do.
    If you need making a small site I think Abyss Server is a good choice:
    http://www.aprelium.com/
    Small, fast and easy to configure. You can have your server with...
  13. Replies
    10
    Views
    6,419

    I read that pages many times before posting here,...

    I read that pages many times before posting here, so many time that I can post a contradiction in their page.
    They write:
    On success putenv() returns 0, and -1 otherwise.
    and in the code actually...
  14. Why so many programs return wrong remainder?

    Please before continue read what remainder is, th1.1.3. ***

    Why many programs including all C flavours compilers, windows calc, Excel....


    #include <iostream> /* TEST, SEE WITH YOUR EYES */...
  15. Replies
    10
    Views
    6,419

    Setting environment variables.

    I have to make a DOS (real DOS, not a Win32 command line app) program that parse a file a set some environment variables.

    I made the full program when I stuck against the apparently easy task of...
  16. Replies
    21
    Views
    3,211

    If you use -Wall (as you really should) when...

    If you use -Wall (as you really should) when compiling the compiler will warn you if you forgot the second = in the confrontation.
    Also, if you are afraid to make mistakes, just use the constant in...
  17. Replies
    1
    Views
    1,122

    I/O with files, deleting.

    I am making a small program that works on a file. I sometime need to delete a line of a peice of the file.

    I checked many pages and tutorial, but it seems none had my problem before... :(

    How...
Results 1 to 17 of 17