Search:

Type: Posts; User: ghoul

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,316

    Have you looked at GDI or gdiplus(these I am not...

    Have you looked at GDI or gdiplus(these I am not sure about but maybe dwrite and others) could be what you're looking. Gdiplus(and GDI) allow for font high level font manipulation and they offer low...
  2. Replies
    7
    Views
    1,622

    Thanks my friend. I was actually used '1s' and...

    Thanks my friend. I was actually used '1s' and hence wasn't understanding how this could be the solution.
  3. Replies
    7
    Views
    1,622

    That didn't work but %S did work. Thanks for...

    That didn't work but %S did work. Thanks for pointing me in the right direction :-)
  4. Replies
    7
    Views
    1,622

    Yeah, sorry. I thought the count would include...

    Yeah, sorry.

    I thought the count would include the terminating '\0'.

    I posted some older code. It looks like this




    #include <stdio.h>
  5. Replies
    7
    Views
    1,622

    swprintf misbehaving (?!?!)

    This is probably something petty or I don't understand how swprintf is supposed to work.

    I have the following code:




    #include <stdio.h>
    #include <wchar.h>
  6. No it is not. Pointer arithmetic is syntactic...

    No it is not. Pointer arithmetic is syntactic sugar .
  7. Replies
    3
    Views
    5,429

    Thanks, John C, as always. I guess that's...

    Thanks, John C, as always.

    I guess that's about all I can say.
  8. Replies
    2
    Views
    2,881

    Nitpick bool delspval(int val) { ...

    Nitpick




    bool delspval(int val)
    {
    node *temp = 0;
    if (search(val) == NULL) {
    return 0;
  9. Replies
    3
    Views
    5,429

    Okay - just disregard this. It seems to like I...

    Okay - just disregard this. It seems to like I might not be providing enough information to figure out what is happen.

    But, yes, this is Wine code, if someone wants to investigate this further.
  10. Replies
    3
    Views
    5,429

    casting struct pointer to void**

    Hello,

    This might be silly but I just came across a strange code. I don't have any problem understanding most of the code except the part where the author casts a structs pointer to void** before...
  11. The code is actually very C-like. You only...

    The code is actually very C-like.

    You only need to replace the usage of the C++ standard library with corresponding C API, do the same for the header files and use 'char *' in place of 'string...
  12. Replies
    3
    Views
    2,481

    Sorry about the typo. You are right. Thanks ...

    Sorry about the typo.

    You are right. Thanks



    I don't think it possible to debug the kernel with valgrind but there's kmemleak(which reports memory leaks). And, even if it was, it probably...
  13. Replies
    3
    Views
    2,481

    Possible Null dereference in code.

    I'm looking at some Linux code and something seems strange to me.

    In the code below, it is not clear to me what the else clause achieves and whether it is broken...




    } else {
    /*...
  14. Replies
    1
    Views
    2,325

    I'm not sure what exactly you are asking because...

    I'm not sure what exactly you are asking because your question is too general.

    But for a start, if you haven't done this already.... You probably need to declare a struct where you store your...
  15. Replies
    13
    Views
    6,879

    Speaking of which, may be I'm hijacking this...

    Speaking of which, may be I'm hijacking this thread at this point.

    My finer implementation works but chokes on NULL....



    int strCmp(const char *s1, const char *s2 )
    {
    const char...
  16. Replies
    13
    Views
    6,879

    No, that way you would be comparing pointers. A...

    No, that way you would be comparing pointers. A pointer is equal to the other point if they point to the same memory location.

    Ha! I quickly put together an implementation of strcmp that even I do...
  17. Poll: And, last but not least, this is not a democracy....

    And, last but not least, this is not a democracy. More or less an aristocracy ;-). So, well, a poll might not achieve much
  18. Well, on taking a second look, it looks like you...

    Well, on taking a second look, it looks like you are right.
  19. Just a nitpick here. It looks like your code will...

    Just a nitpick here. It looks like your code will definitely leak memory
  20. While this is possible, it might turn out more...

    While this is possible, it might turn out more complicated than other cases which are simple enough.

    My guess is that one would have to keep track of the size of the currently allocated memory...
  21. Replies
    5
    Views
    4,246

    I was under the impression that you could use...

    I was under the impression that you could use _VA_ARGS__ in this case

    But

    It seem it can only be used in macros.
  22. Replies
    9
    Views
    3,571

    'tail' is a unix command. I am not sure there is...

    'tail' is a unix command. I am not sure there is a a windows equivalent but if you can probably get it via cygwin. Maybe via some other ways too?
  23. Replies
    10
    Views
    1,217

    I was mostly talking about Microsoft compilers. ...

    I was mostly talking about Microsoft compilers.

    But, well, anyways, you are right, nevermind.
  24. Replies
    10
    Views
    1,217

    Well,..... Notice typeof is only available on...

    Well,.....

    Notice typeof is only available on some systems, probably GCC only?
  25. Replies
    10
    Views
    1,217

    Or..... : #include #include...

    Or..... :




    #include <stdlib.h>
    #include <stdio.h>
    #include <string.h>
Results 1 to 25 of 87
Page 1 of 4 1 2 3 4