Hi Adak,
Thanks for your help
Sorry I did not notice, I want to run in Windows environment.
Type: Posts; User: Hannibal2010
Hi Adak,
Thanks for your help
Sorry I did not notice, I want to run in Windows environment.
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...
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.
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],...
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,
...
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...
But, when do I should call this function?
I want this function runs when the variable changes.
Can I do it?
I mean, I want to set a trigger, a function will run when a variable changes.
Can I do it?
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...
Dear laserlight & BillyTkid
Thanks for your help
I will check
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.
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?
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?...
Dear laserlight
I found it, ## is used to concatenate two strings
Preprocessor directives - C++ Documentation
Thank you very much for your help
Can you give me a link
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...
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};
Is there any other ways to understand Compiling Process of a large project?
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...
Dear,
So how can I generate Assembly code of final output in the big project? I am really confuse now :(
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...
Dear tabstop,
But I can, for example
gcc -S -o test test.c
And gcc will generate test as assembly code file
Dear,
But in the first time, I run with -S options, it fails and cannot generate the final output
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)
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...