Search:

Type: Posts; User: cosmo1996

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    5,561

    Reduce exe file size

    does anybody know how to reduce the size of an exe file

    Thanks.
  2. Thread: Create a DLL

    by cosmo1996
    Replies
    0
    Views
    1,656

    Create a DLL

    Does anybody know a tutorial for creating a DLL in C.

    Thanks
  3. Replies
    4
    Views
    2,116

    Char as integer

    I didn't want to write all the code so that's why I abbreviate it in my first post.



    typedef struct include_table{
    char *ctrl_id;
    int *ctrl_value;
    }FINCLUDE;

    int...
  4. Replies
    4
    Views
    2,116

    char to integer

    I have a little problem with my code I have a pointer to integer variable and I want to assign it a char value.
    Can I do that???



    int *value, total;
    char **p;

    for (i=0; i< total; i++)...
  5. Thread: B-Trees

    by cosmo1996
    Replies
    3
    Views
    1,558

    B-Trees

    Anybody knows of a binary tree implemntation in c?

    I am a novice... please help.

    Thanks
  6. Replies
    3
    Views
    1,677

    Cycle counters

    Does anybody knows of a function or a link where I can find a function that will give me the time in milliseconds for an interval of time...???

    I would really appreciate it,

    Thanks.
  7. Replies
    2
    Views
    2,142

    Hash tables - chaining

    Does anybody know of a Hash Chaining algorithm or a web page for it?

    I am trying to implement a hash table with searching and insertion.

    Many thanks
  8. Thread: Hashes in c

    by cosmo1996
    Replies
    4
    Views
    5,195

    Hashes in c

    Does anybody know an algorithm for linear probing to avoid collision in hash tables in c.

    Thanks.
  9. Replies
    4
    Views
    918

    Thanks, but does it matter if I have my num...

    Thanks, but does it matter if I have my num variable as an uint32_t and I just have the 84c2365 number without the 0x notation?

    So will


    int result = num & 0xFF;

    make the conversion from...
  10. Replies
    4
    Views
    918

    String problem

    I have an int variable that contains an hex number like this 084c2365. And I want to convert the first byte(65) into a decimal number (101).



    char c[100];
    int num; //Num has the value...
  11. Replies
    4
    Views
    8,796

    Thanks guys!!!!

    Thanks guys!!!!
  12. Replies
    4
    Views
    8,796

    hex to dec in c

    I have a question, does anybody know about a function in C that will convert a char string like '2C' into a decimal number.

    Thanks.
  13. Replies
    3
    Views
    1,074

    Pointers and structures

    I have a problem when I try to allocate some memory for my structrure.



    #define BUFSIZE 100


    typedef struct hash_t{
    char *buffer[50];
    unsigned int *t_index;
  14. Replies
    3
    Views
    996

    The structure is like this typedef struct...

    The structure is like this


    typedef struct incl_table{
    char *t_flag;
    union final_table{
    char *u_id;
    int *u_value;
    }table;
    }FTABLE;
  15. Replies
    3
    Views
    996

    Structture problem

    I have a problem with this function. My program crashes when I try make my structure "f_table[x].table.u_value" point to my array of pointers.... Is this the correct way of making the assignement? ...
  16. Replies
    6
    Views
    3,102

    Thank you very much... lets see if my boss likes...

    Thank you very much... lets see if my boss likes it with the cast... I'll let you know later..
  17. Replies
    6
    Views
    3,102

    At compilation it give me: error #2168:...

    At compilation it give me:
    error #2168: Operands of = have incompatible types 'int *' and 'char *'.
    *** Error code: 1 ***
    on this line:
    s_table[i].utest.value=&test_buffer[i];

    Is this a...
  18. Replies
    6
    Views
    3,102

    Yes i want to print 64636261, but I am not...

    Yes i want to print 64636261, but I am not getting that ... I get an error in my int pointer when i make it point to the buffer....


    s_table[i].utest.value=&test_buffer[i];

    Thank you.
  19. Replies
    6
    Views
    3,102

    C string into an int pointer

    I've bee having a problem with my code. I have a structure with a nested union that contains to pointers. I want to read the first 4bytes from a buffer into a the integer pointer from the structure....
Results 1 to 19 of 19