yes. I have.
is libc redundent or in a LInux system you have both libc and glibc ?
Type: Posts; User: RoshanX
yes. I have.
is libc redundent or in a LInux system you have both libc and glibc ?
I am using UBUNTU, with all the development packages installed.
It's not only stdarg.h ( it's no at /usr/include ) , but some other includes as well ( some in /usr/include/sys )
Does anyone konw the difference between GLIBC and standard C library.
GLIBC seem to miss a few elements, for example stdarg.h .
hi all,
I have a piece of code which suppose to reset the data members of a structure ( there are around 15 member variables ), this "clear" function gets called frequently and I want to make it...
Is this not defined for win32 ?
( it was a typedef in stdint.h )
hi all,
is uint32 ( or uint32_t ) a built in type or a typedef ?.
If it's a typedef ( or a macro ) where is it defined ?
Thank you.
oops !. Disregard my previous reply. I was thinking about binary number :)
mmmm....something like this should work:
num=0x000345
int digit,digit_total;
//get rid of the leading zeros
int i =0;
while(!(digit=(num<<i)&(1<<sizeof(int))) && i < sizeof(int))
i++;
hi all,
I am trying to instrument a DLL, which will be loaded by a third party program.
So I compiled and linked the DLL with -pg flag. But when I ran the program, the profile data does not get...
Hi all,
Is there a way to change where GCC will look for glibc header files ( defult: /usr/include , /usr/local/include ...) ? is there a way to change the spec file and archive this ?
( I...
Just a quick note on realloc. Memory allocation routnies costs alot ( in terms of processing time ). It's good practice to use realloc moderately, allocate a resonable amount of memory initially,...
hi all,
I have a block of memory, and I am storing arbitrary number of basic types ( floats, ints, chars, and char* ( strings )) in this block of memory.
...
If I understood your problem correctly, the reason is as follows. Every include file ( should ) include the following line to prevent it from including more than once in the same souce file
...
answer to your second question, since a pointer is an integer, it is possible to do it like this
y=(int)&x;
just a tip, it's always a good idea to reverse the comparion
ex. if ('5'==ch), this would prevent errors like , if (ch='5')
hi all ,
I am producing a DLL, which gets loaded to a debugger. When it gets loaded, i get the following message
"Run-time check Failiure #0, The value of ESP was not properly saved accross a...
hi all,
I am having a problem with a particular project, the problem comes at the LINK state.
The solution contains several probjects, and some of the projects will produces libraries, which...
hi all,
#include <iostream>
using namespace std;
class A
{
public:
hi all,
typedef unsigned int uint32
typedef unsinged short uint16
typedef unsinged char uint8
...
char* p[10]
ok...this simplified code was taken from a linux kernel book....
i'll give the full code here..
unsgined long timeout = jiffies + HZ/2;
/* do some work */
ok, I missed out one thing....
#define LESS(x,y) ((long)(x) - (long)(y) <0)
so this should make it signed arithmatic... ??
The substraction won't be unsigned....just because the values are usigned...
Ok...
it's like this, at the first check
first_t = 3999 second_t = 4294..........
If I expand the macro
if ( ( 3999)-(4294.....) <0) <------ is true
so this should print , "...
True, that is the output, but.... shouldn't it both give the same result...
that is , "2....... first is less".