Search:

Type: Posts; User: kjwilliams

Search: Search took 0.00 seconds.

  1. Isn't there a feature in gcc where you can use...

    Isn't there a feature in gcc where you can use main() as a overloaded function as in my code above?
  2. Why cant I overload main - when its already overloaded?!

    If there are two versions of main() why cant I overload them in my code, when they are already overloaded as two of the same function for C++?

    test1.cpp


    #include <iostream>

    using...
  3. Thats all I needed to know, thanks....

    Thats all I needed to know, thanks....
  4. I use DJGPP which uses GCC, on Windows , is the...

    I use DJGPP which uses GCC, on Windows , is the -E flag a compiler or linker flag?
  5. which #define takes precedence if its the same from a .c and .h files?

    Please refresh my memory.. on this...

    If you have filea.c with:



    #define MYVAR 91


    and a fileb.h with :
  6. Replies
    46
    Views
    7,875

    Heres a good guide ( although they didn't provide...

    Heres a good guide ( although they didn't provide a example to show it ) for strtok();

    strtok - cppreference.com
  7. Replies
    46
    Views
    7,875

    Well, I got a interesting reply on...

    Well, I got a interesting reply on comp.os.msdos.djgpp.... from someone there. He made some the same complaints about my code , as everyone did here, but he did make one suggestion that I thought I...
  8. Replies
    46
    Views
    7,875

    Well, in certain cases using the built in...

    Well, in certain cases using the built in debugger that uses break points, as in my case , RHIDE for DJGPP has one. But GDB is better - but I am out of practice with it. But I found out what was...
  9. Replies
    46
    Views
    7,875

    I recently posted a message like this in...

    I recently posted a message like this in comp.os.msdos.djgpp and I am waiting for someone there to respond to see what they say.

    I think that the null pointer returned from strtok() in my...
  10. Replies
    46
    Views
    7,875

    Ok.... All of you who have been telling me my...

    Ok.... All of you who have been telling me my program is wrong in part or another way, again... have been right!

    And I will have to , AGAIN, redesign my string_parser program.

    Let me explain...
  11. Replies
    46
    Views
    7,875

    @phantomotap C strings are neither a...

    @phantomotap



    C strings are neither a protocol or a type, they are arrays - as defined in the C standard
  12. Replies
    46
    Views
    7,875

    from a previous post... w1 and w2 are both c...

    from a previous post...


    w1 and w2 are both c strings that observe the standard explained as s2, which is defined in the underlined next sentence. That's how I understand it.
  13. Replies
    46
    Views
    7,875

    I want to thank everyone - for pointing out that...

    I want to thank everyone - for pointing out that one detail about strtok(); that I misunderstood.....
    my program ( not my bigger program that will use it ) works :

    here it is:


    /*
    ...
  14. Replies
    46
    Views
    7,875

    The top statement is a char assigned the Null...

    The top statement is a char assigned the Null character
    The bottom statement is a char pointer assigned to a empty char string

    A C string is actually a array of characters such as :



    ...
  15. Replies
    46
    Views
    7,875

    Ok - using the above text , I am not seeing a...

    Ok - using the above text , I am not seeing a difference with what I am doing in conflict with what the standard dictates. Please highlight or underline what it is that I am not following, because I...
  16. Replies
    46
    Views
    7,875

    That's what I didn't understand about the syntax...

    That's what I didn't understand about the syntax of strtok(); if it required a string or a character, long ago - but I've seen it used with both and since its strange that neither my Borland or DJGPP...
  17. Replies
    46
    Views
    7,875

    Part 2 : @ledow, et al this is a ANSI C...

    Part 2 :

    @ledow, et al

    this is a ANSI C program that is portable so you can compile it if you wish



    //re-testing parse_text for WATT
  18. Replies
    46
    Views
    7,875

    Well the way that I design code before I...

    Well the way that I design code before I implement it into a larger program, is that I test it alone - in this circumstance from other function calls the way that it is set up is like this :



    ...
  19. Replies
    46
    Views
    7,875

    @ledow short int string_parser(char...

    @ledow




    short int string_parser(char *userstring, char *target, char magic, short int word)
    {

    static char subject[PARSE_SIZE_LIMIT]; subject[0] = '\0';
  20. Replies
    46
    Views
    7,875

    Well the thing is that this is not a hypothetical...

    Well the thing is that this is not a hypothetical question, I am writing a console program using DJGPP ( a port of GCC ) for MS-DOS. For the past month, even after upgrading the compiler after the...
  21. Replies
    46
    Views
    7,875

    Let me rephrase my question... Probably what...

    Let me rephrase my question...

    Probably what I mean by compiler based undefined behavior is actually what is called implementation defined behavior

    Lets say, not all compiler implementations...
  22. Replies
    46
    Views
    7,875

    General question about undefined behavior

    Does compiler based undefined behavior exist, under the following
    condition...

    If under the circumstances a program compiled with a C compiler compiles ( compliant with the ANSI C standard )...
Results 1 to 22 of 22