Description:
Discussion about C.
|
|
|
target exec, gdb, gfortran
|
| |
I thought I would ask a question that is decidedly non-political, although I will admit that a frenchman made my fourth. As well as infinite cheeseburgers, and, of course, jenny. When I believe to be issuing commands to dos that will step me through gdb, I receive counter-communication that talks of target exec.... more »
|
|
struct with const string
|
| |
Hello, Looking for a solution to take something like: const TCHAR StrArrayZ[]=_T("Item1\0Item2\0 Item3\0"); and convert it to something like: ...struct { union { const TCHAR StrArrayZ[1]; struct { const TCHAR I1[]=_T("Item1"); const TCHAR I2[]=_T("Item2"); const TCHAR I3[]=_T("Item3");... more »
|
|
What am I doing wrong?
|
| |
I think I know what the problem is. I'm passing an array to strdup() which is not what it wants and is producing a bus error. But, even knowing the cause of the problem I'm having difficulties thinking of a suitable solution. I'm basically reading a CSV file and then tokenising it to get the relevant values in a useable form. So I need to read the file one line... more »
|
|
frand
|
| |
When porting a program to MS-Windows I got a redefinition error on "frand" (already defined in stdlib.h). Is it legal if I use "frand" in a source file if stlib.h is not included there?
|
|
Problem 77: Greedy Gift Givers
|
| |
Problem is documented at [link] Why doesn't this work? /* ID: albert.4 LANG: C TASK: gift1 */ ...main() { struct friend { int money, ngifts; /* no. gifts */ char name[MAXNAMELEN]; }; int NP; /* no. people */... more »
|
|
is a pointer memset to zero necessarily eqal to NULL?
|
| |
Hi all Is this assertion guaranteed? { void *vptr; memset( & vptr, 0, sizeof vptr); assert( NULL == vptr ); ...What about these ones? { sometype *ptr; memset( & ptr, 0, sizeof ptr); assert( (sometype*)NULL == ptr ); assert( NULL == (void*)ptr ); ...Thanks, viza
|
|
Understanding char **argv
|
| |
Hello all, Forgive the somewhat simple question I am sure this will be, but I am having some problem understanding what: char **argv looks like. For instance, i know through trial and error that if I do this: ...int main(int argc, char *argv[]) { int l; for( l=0; l<argc; l++ ) {... more »
|
|
Sandbox server
|
| |
How would one program a sandbox? Let's say the server and all clients have the same architecture, and environment (for example 32bit x86-Linux environment). The server shall offer sandbox services to clients. A remote client can get a sandbox (an empty directory space) on the server, upload his precompiled executable program,... more »
|
|
Stats for comp.lang.c (last 7 days)
|
| |
============================== ============================== ================ Analysis of posts to comp.lang.c ============================== ============================== ================ (stats compiled with a script by Garry Knight) Total posts considered: 1,144 over 7 days... more »
|
|
information hiding vs. inlining
|
| |
Do compilers inline functions even if the programmer could not do it manually because the needed information is hidden at the language level? I am talking about stuff like incomplete types and static variables e.g. .. get_attribute(object); .. Where object is an incomplete type in this unit and get_attribute basically... more »
|
|
|