Tagged Questions
2
votes
3answers
93 views
default wordsize in UNIX/Linux
I was inspecting the preprocessed output of my C program and happened to look at the header file wordsize.h
It is located in
/usr/include/i386-linux-gnu/bits/wordsize.h
the file contains only one ...
0
votes
0answers
34 views
GCC Constructor & Link order, Are they have relation? [migrated]
I have to write this question, I have try a lots to find the reason.
There is a.c:
UTEST_BEGIN()
UID(a_test)
{
printf("a test");
return true;
}
UTEST_END(a)
b.c is simlar:
UTEST_BEGIN()
...
1
vote
1answer
60 views
How do I keep 'indent' from moving curly braces to the next line?
I have several empty inline function definitions in C++ like so:
class C
{
void foo(){}
void bar(){}
};
now if I run indent -st -i4 -nut test.cc in order to just fix the indentation I get
...
3
votes
2answers
1k views
Implementing a Unix shell in C: Logging
I am currently working on implementing my own UNIX shell in C. The basis of the shell is working, you could find the source code here.
Right now my next task is to implement a logging feature for the ...
