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...
Type: Posts; User: ghoul
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...
Thanks my friend. I was actually used '1s' and hence wasn't understanding how this could be the solution.
That didn't work but %S did work. Thanks for pointing me in the right direction :-)
Yeah, sorry.
I thought the count would include the terminating '\0'.
I posted some older code. It looks like this
#include <stdio.h>
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>
No it is not. Pointer arithmetic is syntactic sugar .
Thanks, John C, as always.
I guess that's about all I can say.
Nitpick
bool delspval(int val)
{
node *temp = 0;
if (search(val) == NULL) {
return 0;
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.
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...
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...
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...
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 {
/*...
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...
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...
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...
And, last but not least, this is not a democracy. More or less an aristocracy ;-). So, well, a poll might not achieve much
Well, on taking a second look, it looks like you are right.
Just a nitpick here. It looks like your code will definitely leak memory
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...
I was under the impression that you could use _VA_ARGS__ in this case
But
It seem it can only be used in macros.
'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?
I was mostly talking about Microsoft compilers.
But, well, anyways, you are right, nevermind.
Well,.....
Notice typeof is only available on some systems, probably GCC only?
Or..... :
#include <stdlib.h>
#include <stdio.h>
#include <string.h>