freopen and concurrent access132 (10/26/2007 10:26:19 AM) comp.unix.programmer Hi Group, I have processes residing on different hosts logging to the same file, which resides on a NFS mount. The logging is done by freopen'ing stdout with mode "a". I would like the concurrent access to the... Pietro
comparison on non-integer types3942 (9/5/2007 5:59:42 PM) comp.lang.c Hi group, I always thought that applying a binary operator such as ==, !=, = to two double or float values was an operation which results were well defined. Now, I'm passing a program through splint[1] and it ... Pietro
undefine for functions829 (8/30/2007 8:23:10 AM) comp.lang.c Hi Group, is there a mean to undefine a function, in a similar way as you can undefine macros? For example, let's say that I need a few declarations from stdio.h but want to define my own printf: #include #u... Pietro
return discards qualifiers from pointer target type1724 (8/28/2007 10:42:42 AM) comp.lang.c i Group, to my understanding, defining a function parameter as "const" means that the function is not going to change it. Why does the compiler says "return discards qualifiers from pointer target type" when ... Pietro
safe to fclose stdout to avoid memory leak?736 (8/20/2007 3:35:19 PM) comp.lang.c Hi group, I just noticed that a malloc w/out relative free occurs in the standard C library (or at least, on my implementation of it). > cat test.c #include int main(void) { printf("%s\n", "Hello"); ret... Pietro
pointer points elsewhere, but by changed it?828 (8/17/2007 9:59:30 AM) comp.lang.c Hi group. I have a problem in a program structured like this: void function_1(my_data_t *data); my_data_t *create_data(void); void library_function(void); int main(void) { my_data_t *data; data = create... Pietro
Header file included more than once?425 (8/9/2007 10:56:32 AM) comp.lang.c Hi Group, suppose test1.c, test2.c and test.h /*** BEGIN TEST.H ***/ #ifndef _TEST_H #define _TEST_H typedef struct { unsigned int code; const char *name; } test_struct; test_struct structs[NOF_STR... Pietro
controlling expressions evaluation1524 (7/9/2007 12:04:57 PM) comp.lang.c Hi group, here I come with a question which is quite simple per se, but for which I can't find an answer. Does the C standard guarantee that inside an expression such as (x && y) "y" is not evaluated if "x" ... Pietro
char * signedness1733 (7/5/2007 10:12:23 PM) comp.lang.c Hi group, is it always safe to pass unsigned char * variables as parameters to functions accepting char * arguments? For instance, I have to compare two unsigned char * strings. Can I safely use strcmp? Do I n... Pietro
SCHAR_MIN1524 (9/30/2009 8:52:19 AM) comp.lang.c Hello, Why SCHAR_MIN == -127 in the C99 standard? I thought integer types representation is two's complement, and that means that if I have 8 bits I can represent values from -128 to +127... Thanks. ... pi00100100(8)
Incomplete types #23124 (9/30/2009 9:59:30 AM) comp.lang.c Hello, I learned there are object types (describe objects) and function types (describe functions). Truly there are also incomplete types, but I can't understood what they really are. I read void is an incom... pi00100100(8)
casting and ++ operators !!530 (9/30/2009 12:47:54 PM) comp.lang.c int main() { char arr[]={1,2,3,4}; char *c=arr; *c++='x'; // works fine *(c+1)++='9'; // l-value needed case 1 void *ptr=arr; *((char *)ptr+1)=8; // works fine *((char *)ptr)++=8; //l-value nee... duggydiggy(1)
database2526 (9/30/2009 11:51:13 PM) comp.lang.c Well I have googled and googled and can't find a tutorial on database algorithms. I think I have pretty much given up for now on the tree. The tutorial here has code that just produced a bunch of errors. ... nospam116(1187)
A note on Peter Seebach's vicious little tirade4828 (10/2/2009 6:05:47 AM) comp.lang.c http://spinoza1111.wordpress.com/2009/10/02/a-note-on-peter-seebachs-viciou= s-little-tirade/ Peter Seebach has written a vicious little tirade on a computer author, Herb Schildt which is at http://www.seebs.... spinoza1111(3250)
static into structure2732 (10/26/2009 7:26:21 AM) comp.lang.c look at this code .... i am quite confuse why i am getting error while compiling it by gcc. #include struct myStructure { int i; static int si; }; int main() { struct myStructure a; printf("%... sumit15nov(23)
IDE recommendation?1440 (11/10/2009 9:18:33 PM) comp.lang.c Hi all, I've been struggling along with just the Linux editing utility nano in conjunction with gcc. It's fine for just a few pages of code, but lately I've been trying to examine how more complex open source ... orion.osiris(37)
Common misconceptions about C (C95)40683 (11/18/2009 3:35:56 AM) comp.lang.c I have created a text available under GNU FDL 3 (Free Documenation License)
or later, regarding "Common misconceptions about C" (C95).
http://www.cpp-software.net/documents/free_documents/c_misconception... Ioannis