Search:

Type: Posts; User: Hannibal2010

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,574

    Hi Adak, Thanks for your help Sorry I did not...

    Hi Adak,
    Thanks for your help
    Sorry I did not notice, I want to run in Windows environment.
  2. Replies
    3
    Views
    1,574

    Periodically copy some files

    Dear all,
    Now I have the problem: I need to copy some files from first directory to second directory periodically (for e.g, each hour).
    How can I call the function periodically and how can I copy...
  3. Replies
    15
    Views
    2,194

    Hi grumpy, So that is what I mean - I don't...

    Hi grumpy,
    So that is what I mean - I don't expect about memory size approach. I hope that C programming language has a special method to access to member of struct without care about member size.
  4. Replies
    15
    Views
    2,194

    Dear all, The idea of member index is very good,...

    Dear all,
    The idea of member index is very good, but unfortunately, the data type is various, not the same.
    If the data type is the same, the simple way is create an array such as member [10000],...
  5. Replies
    15
    Views
    2,194

    Hi Adak, Thanks for your idea, but I don't ask...

    Hi Adak,
    Thanks for your idea, but I don't ask about an array of struct.
    I am asking about a struct which has many members, such as:


    struct A
    {
    int member1,
    int member2,
    ...
  6. Replies
    15
    Views
    2,194

    Indicate the member of the struct

    Dear all,
    I have a struct with many members (called struct X).
    Now I want to use an integer (for e.g, int index) to index the struct.

    For details,
    Originally, we access the member of struct by...
  7. But, when do I should call this function? I want...

    But, when do I should call this function?
    I want this function runs when the variable changes.
    Can I do it?
  8. I mean, I want to set a trigger, a function will...

    I mean, I want to set a trigger, a function will run when a variable changes.
    Can I do it?
  9. How to know when a value of a variable change?

    Dear all,
    I have a big program. A variable change unexpectedly, so I want to find what function change this variable.
    How can I track a variable in Linux environment?
    Is there any method?
    Any...
  10. Dear laserlight & BillyTkid Thanks for your help...

    Dear laserlight & BillyTkid
    Thanks for your help
    I will check
  11. Yes, I know But how can I know it in source...

    Yes, I know
    But how can I know it in source code.
    I mean, there are 2 times a pointer point to my_struct, so how can I know these 2 pointers are the same, and reference count is still only 1.
  12. Dear Tater, Thanks for your help But, let...

    Dear Tater,
    Thanks for your help
    But, let consider the following example



    So, in this case, how many pointers are pointing to struct1? 1 or 2 pointers?
  13. How many pointer are pointing to this object

    Dear all,
    Now I want to implement reference counter in C, for automatic garbage collection.
    For example, now I have a struct x.
    How to know, how many are there pointer are pointing to this struct?...
  14. Replies
    7
    Views
    11,341

    Dear laserlight I found it, ## is used to...

    Dear laserlight

    I found it, ## is used to concatenate two strings

    Preprocessor directives - C++ Documentation

    Thank you very much for your help
  15. Replies
    7
    Views
    11,341

    Can you give me a link

    Can you give me a link
  16. Replies
    7
    Views
    11,341

    Dear laserlight I only found this section: ...

    Dear laserlight

    I only found this section:



    ${variable##prefix}
    Substitute the value of variable, but first discard from that variable any portion at the beginning that matches the pattern...
  17. Replies
    7
    Views
    11,341

    ## symbol in C language

    Dear all,
    I am reading existing source code, and meet ## symbol

    Really I don't know what does this symbol mean?

    The line of code is:



    char *cli_name ## _help[] = {##ARGS, NULL};
  18. Replies
    3
    Views
    2,635

    Is there any other ways to understand Compiling...

    Is there any other ways to understand Compiling Process of a large project?
  19. Replies
    3
    Views
    2,635

    How to generate Makefile tree

    Dear all
    For example, I download Linux kernel from kernel.org

    Now, I want to generate Makefile structure of this project (from top Makefile to each Makefile in each folders), to understand the...
  20. Dear, So how can I generate Assembly code of...

    Dear,

    So how can I generate Assembly code of final output in the big project? I am really confuse now :(
  21. Dear tabstop and laserlight, I think it is my...

    Dear tabstop and laserlight,

    I think it is my root question:

    In a big project, with many Makefile and many gcc commands, which gcc command should be added -S option (it means, which is lastest...
  22. Dear tabstop, But I can, for example gcc -S...

    Dear tabstop,

    But I can, for example
    gcc -S -o test test.c
    And gcc will generate test as assembly code file
  23. Dear, But in the first time, I run with -S...

    Dear,

    But in the first time, I run with -S options, it fails and cannot generate the final output
  24. Dear tabstop, Because the linker fails while...

    Dear tabstop,

    Because the linker fails while linking object files, so gcc can not create the final result in Assembly code (but it is which I need)
  25. Generate Assembly code and Binary code also

    Dear all,
    Now I need to modify the existing source code.

    I added -S options to gcc command, so it generates the Assembly code, but the .o (object) files also are combined to Assembly code, so the...
Results 1 to 25 of 47
Page 1 of 2 1 2