Search:

Type: Posts; User: RoshanX

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. yes. I have. is libc redundent or in a LInux...

    yes. I have.
    is libc redundent or in a LInux system you have both libc and glibc ?
  2. I am using UBUNTU, with all the development...

    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 )
  3. Difference between GLIBC and Standard C library

    Does anyone konw the difference between GLIBC and standard C library.
    GLIBC seem to miss a few elements, for example stdarg.h .
  4. Replies
    1
    Views
    2,988

    copying an object using memcpy

    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...
  5. Replies
    7
    Views
    62,480

    Is this not defined for win32 ? ( it was a...

    Is this not defined for win32 ?
    ( it was a typedef in stdint.h )
  6. Replies
    7
    Views
    62,480

    uint32_t or uint32

    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.
  7. Replies
    5
    Views
    1,601

    oops !. Disregard my previous reply. I was...

    oops !. Disregard my previous reply. I was thinking about binary number :)
  8. Replies
    5
    Views
    1,601

    mmmm....something like this should work: ...

    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++;
  9. Replies
    2
    Views
    2,832

    Profiling with GPROF

    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...
  10. changing the gcc standard include search path

    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...
  11. Thread: Dynamic arrays

    by RoshanX
    Replies
    18
    Views
    2,409

    Just a quick note on realloc. Memory allocation...

    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,...
  12. Replies
    4
    Views
    1,012

    Memory Alignment

    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.

    ...
  13. Replies
    6
    Views
    7,794

    If I understood your problem correctly, the...

    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


    ...
  14. Replies
    10
    Views
    16,435

    answer to your second question, since a pointer...

    answer to your second question, since a pointer is an integer, it is possible to do it like this




    y=(int)&x;
  15. Replies
    15
    Views
    2,331

    just a tip, it's always a good idea to reverse...

    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')
  16. Replies
    0
    Views
    1,102

    Run-time check failirue #0

    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...
  17. Replies
    1
    Views
    1,837

    MD and MTD options in Visual C++

    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...
  18. Replies
    2
    Views
    1,462

    Array initializing

    hi all,



    #include <iostream>
    using namespace std;

    class A
    {
    public:
  19. Replies
    1
    Views
    2,901

    pointer type casting

    hi all,




    typedef unsigned int uint32
    typedef unsinged short uint16
    typedef unsinged char uint8

    ...
  20. char* p[10]

    char* p[10]
  21. Replies
    14
    Views
    1,787

    ok...this simplified code was taken from a linux...

    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 */
  22. Replies
    14
    Views
    1,787

    ok, I missed out one thing.... #define...

    ok, I missed out one thing....

    #define LESS(x,y) ((long)(x) - (long)(y) <0)

    so this should make it signed arithmatic... ??
  23. Replies
    14
    Views
    1,787

    The substraction won't be unsigned....just...

    The substraction won't be unsigned....just because the values are usigned...
  24. Replies
    14
    Views
    1,787

    Ok... it's like this, at the first check ...

    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 , "...
  25. Replies
    14
    Views
    1,787

    True, that is the output, but.... shouldn't it...

    True, that is the output, but.... shouldn't it both give the same result...

    that is , "2....... first is less".
Results 1 to 25 of 68
Page 1 of 3 1 2 3