Search:

Type: Posts; User: MisterIO

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: data types

    by MisterIO
    Replies
    12
    Views
    1,493

    I guess he's talking about short ints.

    I guess he's talking about short ints.
  2. Thread: data types

    by MisterIO
    Replies
    12
    Views
    1,493

    Since when there are 16 bits floats?

    Since when there are 16 bits floats?
  3. You're wrong. The OP code is wrong, but your...

    You're wrong. The OP code is wrong, but your example is not. The code:


    x=y++;

    is perfectly fine and it means:


    x = y;
    ++y;
  4. Replies
    20
    Views
    6,615

    IMO on smp systems you still need at least an...

    IMO on smp systems you still need at least an atomic_test_and_set function to do that.
  5. #include #include void...

    #include <stdio.h>
    #include <stdlib.h>

    void test_function(int ***);
    int *fill();

    int main()
    {
    int **p=NULL;
    test_function(&p);
  6. Replies
    7
    Views
    2,079

    IMO there's no point in doing the typedef of...

    IMO there's no point in doing the typedef of struct console either, unless he wants to create an opaque type(which wouldn't make it necessary, but sometimes it's used).
  7. Replies
    7
    Views
    2,079

    You're doing a typedef of struct "nothing" to...

    You're doing a typedef of struct "nothing" to console.
    And the first typedef doesn't work.
    An example that works:


    #include <stdio.h>

    struct console;
    typedef struct console *console_ptr;
  8. Replies
    10
    Views
    51,877

    Among the other reasons, try this code to get an...

    Among the other reasons, try this code to get an hint:


    #include<stdio.h>

    int main(void)
    {
    printf("sizeof('a') = %d\n", (int)sizeof('a'));
    return 0;
    }
  9. Replies
    6
    Views
    1,546

    There are some errors. For example, you're...

    There are some errors. For example, you're putting words 6 chars long in an array[6], so there's no place for the terminating \0.

    Also, talking about style, it should be like this:

    ...
  10. Replies
    15
    Views
    9,641

    I know, it's -std=c99, but I usually use...

    I know, it's -std=c99, but I usually use -std=gnu99. It's still like that mostly because of problems with dinamic arrays(if I remember correctly).
    No, I didn't remember correctly: Status of C99...
  11. Replies
    15
    Views
    9,641

    Looking at C99 right now is not as important as...

    Looking at C99 right now is not as important as using a good c compiler like gcc. (If you use windows, try mingw, even if probably, for windows, the intel compiler is better[not sure though])
  12. Replies
    15
    Views
    9,641

    2) I didn't say that it's a major optimization...

    2) I didn't say that it's a major optimization that will skyrocket the performance of code, but it's still an optimization. Is that the main reason why I prefer it? No, the main reason is that it...
  13. Replies
    15
    Views
    9,641

    I've already put that into the code, it's...

    I've already put that into the code, it's getchar()(for example).
  14. Replies
    15
    Views
    9,641

    1) It's very simple: system passes its string...

    1) It's very simple: system passes its string argument to the shell for execution in an implementation-defined way. So for example, you could end up on a system where there's no "PAUSE" to call, like...
  15. Thread: Typedef

    by MisterIO
    Replies
    2
    Views
    1,569

    If you've got a unix OS, try using cdecl.

    If you've got a unix OS, try using cdecl.
  16. Replies
    15
    Views
    9,641

    #include int main(void) { for(int...

    #include<stdio.h>

    int main(void)
    {
    for(int counter = 1; counter <= 10; counter++)
    {
    printf("The value of the counter is now %d.\n", counter);

    if(counter == 3)
    printf("Hey damned,...
  17. Replies
    17
    Views
    3,484

    You're still wrong. The fact that architecture x...

    You're still wrong. The fact that architecture x may not be available among the architectures supported just means that the library hasn't been ported to that architecture. Again, that can be said...
  18. Replies
    17
    Views
    3,484

    Again, this is completely irrelevant to the...

    Again, this is completely irrelevant to the previous discussion and I never said that. It just seems to me that you're unable to admit that you were wrong.
  19. Replies
    3
    Views
    1,374

    Right, I didn't notice it.

    Right, I didn't notice it.
  20. Replies
    3
    Views
    1,374

    void ValidatePhoneNumber(char *phoneNumber) { ...

    void ValidatePhoneNumber(char *phoneNumber)
    {

    if (phoneNumber[4] != " ") {
    phoneNumber[4] = " ";
    }

    }
  21. Replies
    17
    Views
    3,484

    That's completely unrelated to the concept of...

    That's completely unrelated to the concept of portability. Being standard and being portable are 2 completely different concept.
  22. Replies
    17
    Views
    3,484

    I can simply use what he said about glib with the...

    I can simply use what he said about glib with the c standard library and prove that he's wrong:

    What exactly do you think "the c standard library" does internally? It calls platform-specific...
  23. Replies
    17
    Views
    3,484

    No, your definition of portability is wrong. By...

    No, your definition of portability is wrong. By your definition, not even the c standard library would be considered portable.
  24. Replies
    17
    Views
    3,484

    Well, I think it can be done in a portable way...

    Well, I think it can be done in a portable way through glib.
  25. Thread: Help please

    by MisterIO
    Replies
    18
    Views
    2,225

    Yes, I misunderstood, sorry.

    Yes, I misunderstood, sorry.
Results 1 to 25 of 77
Page 1 of 4 1 2 3 4