comp.lang.c http://groups-beta.google.com/group/comp.lang.c
Today's most active topics: * Not STD C is "not C" ? ----WAS: Re: C to Java Byte Code - 31 new http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/88cb533585cafed4 * Get System Memory in C - 13 new http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/97f4da4890fe4c32 * Newbie Program That Started Off Easy - Simple Math w/ Interactive Menu - 9 new http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ddb89822e84f3152 * C... Why not c++? - 8 new http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/729e593ab5747942 * '\0' ? - 7 new http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/9df440927a7ec4a3 Active Topics ============= file operations FAQ etc - 3 new ---------------------------------- "Douglas G" wrote ... file formats can be very compicated. Sometimes it is OK to terminate the program with an error message on bad input, but often this isn't an option. Examples of gotchas. lines too long to fit in the fgets() buffer. strings of digits too long to be converted to numbers. premature termination of file. delimiters (eq quotes) not properly positioned. ... { FILE *fp; fp = fopen(path, "rb"); if(!fp) return 0; fclose(fp); return 1; ... ... if( fileexists("Myfile.txt") )... - Sun, Oct 31 2004 1: 54 am 3 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/851e4fbe1f5911ae C... Why not c++? - 8 new ---------------------------------- ... ... All of this is true enough, and those reasons can also be used to favor assembly over C. ... Then he would be wrong. C++ is not a strict superset of C89 or C99, and a C++ compiler in conforming mode should not accept every conforming C89 program. ... This is a rather bizarre statement. I really can't tell what you mean by it. ... Only rarely do modifications to C++ become modifications to C. It usually wouldn't make any sense to apply a C+ + feature to C. ... Wrong. gcc does /not/ convert everything to C. gcc has language-specific... - Sun, Oct 31 2004 3:07 am 8 messages, 6 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/729e593ab5747942 reentrant functions - 3 new ---------------------------------- ... Ok people, everyone just sit down. A non-reentrant function is a function that cannot properly reenter. That is, it cannot by called again while a previous instance is still considered live (i.e., its been called but has not yet returned). Its not just that its non-recursive -- it cannot call something which calls something else, etc and eventually call itself again. While the static variables with multithreading is an obvious example of non- reentrant functions, there are far simpler ones as well (otherwise... - Sun, Oct 31 2004 1:37 am 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/8282d3ee818642b8 Survey on Newsgroup Behavior - 2 new ---------------------------------- On Sat, 30 Oct 2004 13:07:16 -0400 (EDT), Arthur J. O'Dwyer wrote in Msg. ... Thanks for making my day! --Daniel ... - Sun, Oct 31 2004 1:51 am 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/68b2a03b7c9914d0 strlen in a for loop with malloc-ed char* - 2 new ---------------------------------- ... Yes, some compilers can do that optimization. ... If you have done an '# include ' previously the compiler is allowed to assume that it is the standard strlen() which is used, and the compiler does know what it does. ... - Sun, Oct 31 2004 3:21 am 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/eb0a87eda9aa95e6 derangement: coding review request - 2 new ---------------------------------- ... I wasn't referring to pointers. I was talking about your attitude to older people. Everybody with a brain and mild familiarity with C knows that pointer misuse is responsible for many errors. Just like in assembly. The fact that you ignored my point shows that you have a serious problem there. ... - Sun, Oct 31 2004 3:34 am 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/63c5271ccb9149a Newbie Program That Started Off Easy - Simple Math w/ Interactive Menu - 9 new ---------------------------------- Mike wrote: ... You can't rewind stdin. ... - Sun, Oct 31 2004 3:34 am 9 messages, 4 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ddb89822e84f3152 I can take it deep - 2 new ---------------------------------- Sounds like the introduction for one of Cilla's 'Blind Date' contestants. .. . - Sun, Oct 31 2004 3:37 am 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/3e6f33a9175539f3 depdot 0.1.0 released - all new ---------------------------------- As C and C++ projects get very large the libraries get to be very inter- dependent. It is useful for such projects to have a means of showing what these dependencies are. The utility depdot, at http://depdot.sourceforge.net, is used to produce a graphviz/dot diagram of a set of library archives (.a and/ or .so files). It analyses the symbols contained and referred to by/in each library in order to work out which library depends on which. The utility is Free Software, issued using the GPL license. It is hoped that it will be useful for... - Sun, Oct 31 2004 3:48 am 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/15a51d4305215b67 Get System Memory in C - 13 new ---------------------------------- Hi all, I'm searching a PORTABLE way to get the available and total physical memory. Something like "getTotalMemory" and it returns the memory installed on my PC in bytes, and "getAvailableMemory" and it returns the available memory in bytes. Do you know is there's a C function, a c++ Object or anything else that compiles in Linux and Windows to get these data? Bye and thanks! Alessandro ... - Sun, Oct 31 2004 4:16 am 13 messages, 7 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/97f4da4890fe4c32 static structures - 4 new ---------------------------------- Hello, I have a question about the C language. This piece of code is from the glibc library. My question is about the static struct The question is.... Are static structures automatically initialized ? static struct random_data unsafe_state = { /* FPTR and RPTR are two pointers into the state info, a front and a rear pointer. These two pointers are always rand_sep places aparts, as they cycle through the state information. (Yes, this does mean we could get away with just one pointer, but the code... - Sun, Oct 31 2004 5:08 am 4 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/7fcc91b937f99ab1 '\0' ? - 7 new ---------------------------------- Hi, I have a question about \0 This is the implementation of strcmp in glibc. Which is probably the same on many other compilers/libraries. My question is about this: ... What does '\0' mean ? Is that a null terminated character ? Does that mean strcmp stops comparing as soon as it encounters a null terminated character ? ... /* Compare S1 and S2, returning less than, equal to or greater than zero if S1 is lexicographically less than, equal to or greater than S2. */ int strcmp (p1, p2) ... register const unsigned char *s1 = (const... - Sun, Oct 31 2004 5:25 am 7 messages, 5 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/9df440927a7ec4a3 Usage of scanf to prevent buffer overflow... - 2 new ---------------------------------- On Wed, 20 Oct 2004 11:31:21 -0400, "lasek" wrote: ... This has been explained before (you can search the archives at www.google.com) but the explanation can be complicated for someone, like us, not intimately familiar with the details of the standard, sort of like quantum mechanics. An easier approach is to run some samples through your compiler with the options set so you can review the output of the pre-processor. In this way you can see what is generated for each of the constructs you... - Sun, Oct 31 2004 5:22 am 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/7eee1b0b5430c4ff pointer array question - 2 new ---------------------------------- ... I'm curious. Why would you want to add it later? I would include it in the original declaration. If you wish, you can dynamic allocate the array. This would be costly in efficiency because you are doing this just to control one small area of memory "yellow". Example: ... typedef struct COLORS { const char **color; size_t cnt; ... int AddColor(COLORS *p,const char *s); void FreeColors(COLORS *p); int main(void) { size_t i; COLORS my = { NULL}; AddColor(&my,"blue"); AddColor(&my,"green"); puts("\ tColors in array");... - Sun, Oct 31 2004 5:23 am 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/1c7bd85f3ba939b1 Trouble using string functions - 4 new ---------------------------------- Hi all, I tried posting this through a free news server, but it still has not appeared in Google, so if it turns up again I apologize. I hope someone can help me with this, or at least help me find some information that will help me. If I were not at my wit's end already, I wouldn't even ask. I'm used to doing all of my programming in Windows, but now I have a task to accomplish in UNIX/Linux using good old gcc. Basically, what I have to do is parse a JavaScript file that will ALWAYS have the following format:... - Sun, Oct 31 2004 6:05 am 4 messages, 3 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/e35bc0ebbb3f46f0 Segmentation Fault... - 2 new ---------------------------------- On Sat, 30 Oct 2004 18:47:22 -0400, Verrigan ... That is, crashes with illegal address access? ... What if the first character in your 'msg' is an ARG_CHAR? ... So you are writing into an unknown address (p = args[i] which hasn't been set up yet if the first character in 'msg' is ARG_CHAR); ... You are allocating a 4 byte (probably) string? Type of args[i] is char*, size of that is 4 bytes on 32-bit machines. At this point you don't know how many characters are in each argument. ... And how about if there are multiple ARG_ CHARs... - Sun, Oct 31 2004 5:42 am 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/f59048347b785c0b hi - all new ---------------------------------- hi ... - Sun, Oct 31 2004 7:17 am 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ad24b248fee51235 Not STD C is "not C" ? ----WAS: Re: C to Java Byte Code - 31 new ---------------------------------- ... The byte addressable machine that would return "2" and is a Data General. The machine that returns "1" is not byte addressable and is a Cray. But indeed C does increment a pointer by sizeof() of the object. However, your lines of code: ... the pointer to int, but on that byteaddressable machine the layout of a word pointer is different from the layout of a byte pointer. ... Sorry, I indeed was wrong here. But on a Data General MV it will clear from byte- address 0x1808a0000, probably not what was intended.... - Sun, Oct 31 2004 7:37 am 31 messages, 7 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/88cb533585cafed4 Adding a Sentinel - 3 new ---------------------------------- I am writing this program that first asks the user to type today's exchange rate between U.S. dollars and Japanese yen, then reads U.S. dollar value and converts each. I am attemtping to use 0 or negative input as sentinel. Any ideas? ... int main( void ) { double yen = 0.0; double dollars = 0.0; double yentoDollar = 0.0; int choice=0; printf("\nYen to Dollar Currency Conversion\n\n"); printf("Enter 1 to begin Conversionn\n"); printf("Enter 0 to Quit the Program\n\n"); printf("Please select your option:\n\n"); ... - Sun, Oct 31 2004 8:22 am 3 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/8989c84e139f7b5d dynamic allocation - 5 new ---------------------------------- In article <news:[EMAIL PROTECTED] talkaboutprogramming.com> ... In other words, you have to be an implementor. As the implementor, you know what the alignment constraints for your system are. (Since I do not know what your system is, *I* do *not* know what those constraints are.) You also know which integer type(s), if any, can hold the value of a "void *" pointer, and whether the OS functions need to deal only with whole words, whole pages, whole segments, or whatever. Again, I do not know about this; only you do.... - Sun, Oct 31 2004 8:31 am 5 messages, 3 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/c86ae177cb7dd736 assert( x > 0.0 && 1 && x == 0.0 ) holding - 3 new ---------------------------------- ... To clarify, the real construction I'm having problem with looks something like this: assert( y >= f(...) ); The assertion is correct (because previous calculations effectively have yielded just that) but erroneously fails because the f value gets extra precision yielding it strictly larger than y. ... Good to know. I'll go with the volatile solution. ... I thought about a volatile cast (only the simple (volatile double) though; yours seems safer) but felt very unsure of the meaning of a volatile cast. Having now... - Sun, Oct 31 2004 9:01 am 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/d35b138dec22feed Constructors/Destructors for struct with function pointers - 5 new ---------------------------------- I have code as ff: typedef double* (*DBLPTRFUNCPTR)(int) ; typedef int* (* INTPTRFUNCPTR)(int) ; typedef double (*DBLFUNCPTR)(int) ; typedef int (* INTFUNCPTR)(int) ; etc .... typedef struct { double *data; int size; int numcols; int currcol; DBLPTRFUNCPTR New ; VOIDFUNCPTR Destroy ; DBLFUNCPTR GetItem ; VOIDFUNCPTR2 SetItem ; ... How can I pass a "this" ptr (i.e. ptr to the struct to my allocate/dealllocate functions so I can write code like this (Yes I know it is a "no-brainer in C++, but I have to implement this in Ansi C - ... - Sun, Oct 31 2004 10:12 am 5 messages, 3 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2ef3b2afd8355a75 Confusion with C Part II - all new ---------------------------------- On Sat, 30 Oct 2004 19:08:06 -0400, "hari4063" ... ... There is nothing that cannot be done only by one method because the methods aren't just similar, they're functionally and syntactically identical. Other than for obfuscated code, I have found only one use for the 'inverted' subscript: portable and obvious conversion from an index to a hex digit. "0123456789ABCDEF"[ i ] where it is known to be in the range of 0 through 15. And even this use is merely cute; it's not easier to read (or harder). It does avoid the... - Sun, Oct 31 2004 11:09 am 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/4b902db955c715bb Newbie,C info needed. - 4 new ---------------------------------- Hi all,Sorry if these come across as really stupid questions to ask,But I need some info regarding the C language. I am interested in learning C,But don`t know if it can do the following,or if I`d need to learn C++,or Visual C+ +. Can C write programs that display/use standard windows/menus/dialog boxes on systems like win98 and XP,or can you only write programs that use consoles for input/output. As I have only seen small examples(The classic `Hello World` program),that bring up console type windows,and not the... - Sun, Oct 31 2004 1:00 pm 4 messages, 4 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/64e2f3b8afce9555 Puzzle - all new ---------------------------------- ... An algorithm to this problem could be based on the fact that basically a leading -ve no in the array has to be neglected...(its not going to improve the sum)... An algo could be-- (works fine i think) int a[] ={ -2,30,-5,-3,4, 5,-3,9}; int len=8; int sum=0,beg=0,end=0,maxBeg=0,maxEnd=0,maxSum=0,i=0; maxBeg=i; maxEnd=i; while (i<len) { sum+=a[i]; if(sum>maxSum) { maxSum=sum; maxEnd=end; maxBeg=beg; ... beg=i+1; sum=0; ... end++; ... Siddharth ... - Sun, Oct 31 2004 1:26 pm 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/df4398650d6fa234 Why can't constants have commas? - all new ---------------------------------- ... Actually, I saw the 'obfuscator' bit after I posted my message.. Even so, I think the content still stands. It seems that ' char buff[a,b]' just means 'buff[b]' in C? In which case I would expect the compiler to remark on the 'a,' bit, which it has (with a misleading error message). And also in this case a 'de-obfuscator' could just remove the extraneous code. (I also thought that 'char buff...' seemed quite sensible output of the obfuscator..) Bart. .. . - Sun, Oct 31 2004 2:10 pm 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/63c83bd31dbb075d Welcome to comp.lang.c! - all new ---------------------------------- Welcome to comp.lang.c! This post is intended to give the new reader an introduction to reading and posting in this newsgroup. We respectfully request that you read all the way through this post, as it helps make for a more pleasant and useful group for everyone. If you are new to newsgroups in general, you can learn a lot about how to get the most out of newsgroups by reading the links below: ... With that said, please keep in mind that comp. lang.c is a group for discussion of general issues of the C programming language, as defined... - Sun, Oct 31 2004 3:37 pm 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/fb15609317f4fdba Getting call stack (like dbx where cmd) - all new ---------------------------------- ... Well, since this completely OS/Architecture specific you'll generally have to search newsgroups for solutions for the specific platforms you're looking for. Anyways, for AIX it'll look something like this: void FaultHandler(int iSignal, siginfo_t *ptSigInfo, void *pvSomething) { DumpCallStack(1, (ucontext_t *) pvSomething); ... void DumpCallStack(int iFd, ucontext_t *ptContext) void *pvInstructionPointer; void **ppvStackFrame; int iFrame = 0; /* The standard stack layout for a process on the PowerPC architecture... - Sun, Oct 31 2004 3:50 pm 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/63a0f8e19d368307 Collections Library for C - 4 new ---------------------------------- Are there any *good* and *free* (as in beer) collections libraries out there for C? I'm looking for basic things like hash maps, linked lists, vectors / array lists, maybe even red/black trees. I would like to specifically avoid code licensed under GPL or LGPL since the cost is too high. Would prefer BSD licensed or public domain. Thank you in advance. ... - Sun, Oct 31 2004 5:24 pm 4 messages, 4 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/7d6847d477ce52f4 C Help Magic Square - 2 new ---------------------------------- Hey guys I'm trying to get a magic square but I'm stuck with it printing out only 1's and 0's in random places. Hope you experts can can provide some input on what I'm doing wrong. ... int x[MAX][MAX]; int size_request(void); //asks the user to enter the size x size square. void fill_square(int[][], int); // fills up the magic square with the appropriate numbers. void print_square(int[] , int); //prints out the magic square. int main(void) { ... int size = size_ request(); x[size][size]; fill_square(x, size);... - Sun, Oct 31 2004 6:07 pm 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a8e92dea7e243f02 Can use macros to solve this problem? - 2 new ---------------------------------- Thanks everyone for the help. Still trying to digest your solutions. I've simplified the problem actually. Actually the different functions all have different argument lists and return types. Eg: int firstFuncT(int, int) --> int firstFuncA(int, int) or int firstFuncW(int, int) void secondFuncT(float) -- > void secondFuncA(float) or void secondFuncW(float) Is it still possible to solve using your suggested methods? One more thing, to answer Tim and Rob, yes, the conversion and processing for the A functions are different... - Sun, Oct 31 2004 6:21 pm 2 messages, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/9d10811ec434717 Here is my full program excluding the search and delete functions - all new ---------------------------------- On Tue, 26 Oct 2004 07:29:34 -0400, "kimimaro" ... Why do you open the file for update when the only I/O you perform is read? ... You need to learn to indent. It will save you much aggravation later. ... There is a mismatch between your format specifications and the subsequent arguments. As coded, you have two formats that will transfer data but three arguments to receive the data. %i requires an int*. &Name is not related to any int. Did you perhaps mean to place the &ID outside the format string? That would... - Sun, Oct 31 2004 6:23 pm 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2096b9852d46b410 Can Array Work within Structure? - all new ---------------------------------- On Wed, 27 Oct 2004 06:41:29 -0400, "kimimaro" ... Yes, a member of a structure may be an array. ... This all appears syntactically correct. ... You cannot specify the initialization in the *declaration* of the struct type. You can only specify initialization in the *definition* of an object with that type. ... To be consistent with the intent of the above declaration, you would use something like struct employee record[200] = { { /* the values for record[0] */ }, { /* the values for record[1] */ }, ................. / * sample values for... - Sun, Oct 31 2004 6:23 pm 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/3f2dc12fd8e2eb6b Sort 1-D of a 2-D array and copy both - all new ---------------------------------- On Wed, 27 Oct 2004 09:19:10 -0400, "hari4063" wrote: ... Since he wants to keep each a[n][0]-a[n][1] pair together, you need to also swap a[i][0] with a[ j][0] just as you did for a[i][1] and a[j][1]. ... <<Remove the del for email>> ... - Sun, Oct 31 2004 6:23 pm 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/157f4ef92c29a0d9 Reading from file - all new ---------------------------------- On Thu, 28 Oct 2004 14:37:18 -0500, Scott Dabot wrote: ... int done = 0; .. . Replace with for (; done==0; ) or while (!done) ... Replace with done = 1; else { ... Replace with done = 1; else { ... Replace with done = 1; else { ... Replace with ... Add ... The problem with this approach is that for anything other than the simplest test, your code ends up indented so far to the right that it is almost unreadable. ... Since EOF is a non-zero constant, your while statement is a never ending loop. Where did you use it? In place... - Sun, Oct 31 2004 6:23 pm 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/9d8089825f4410a3 printing address using pointer - 3 new ---------------------------------- Hello, I have a basic doubt. Consider following program : ... { ... When I print the value of ip i.e. the address of integer i, does it prints the virtual address of integer i or physical address of i ? TIA ./nilesh ... - Sun, Oct 31 2004 9:36 pm 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2d1abdf811f51861 Write only memory - all new ---------------------------------- ... Which may well be "most" cases, if only because use of such variables is the most common case of object use. But there are many uses of uninitialized automatic memory which cannot (practically, or at all) be detected at compile time: { int a, b = 0, *p; p = some computation that might be &a or &b * p = 1; a; // initialized? ... { int x[10], i; for( i = 0; i < 5; i++ ) x[ i] = i; i = some computation that might be < 5 or >= 5 x[i]; // initialized? ... etc. I do sometimes, if there is any significant complexity to the... - Mon, Nov 1 2004 12:13 am 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/e31d94370ccee765 vulnerabilities - 2 new ---------------------------------- On Fri, 22 Oct 2004 20:16:40 +0200, jacob navia ... where C++ fixes to a minor extent some of the problems from C. Biggest is that functions must be declared and in prototype syntax, which eliminates some of the opportunities for mismatching calls. Further, though it isn't inherent in the language or officially required, all practical C++ implementations to support overloading use "typesafe" linking which catches some -- not all -- mismatched function declarations, while C implementations (except yours) don't... - Mon, Nov 1 2004 12:14 am 2 messages, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/5f5c39262f0a735e Newbie linking problem - all new ---------------------------------- On 19 Oct 2004 08:26:04 -0700, [EMAIL PROTECTED] (MagmaGal) wrote in comp.lang.c; comp.lang.fortran added and fup2: ... implementation (compiler, platform) specifics _or_ other languages. However, at least the last version I looked at of clc's welcome message to which you were already referred does not list comp.lang.fortran, which _does_ (usually) handle platform specifics of Fortran, and some interlanguage linking particularly including Fortran-C, which for now is itself platform specific. (In f2003 it... - Mon, Nov 1 2004 12:13 am 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/607eda2416667b32 k&r Ex1-24 without stack - all new ---------------------------------- ... Aside from some minor points marked below and the (char)EOF issue noted already -- which is only a problem on some platforms, and obviously not yours or it would always hang -- I don't see any problems. There are of course some errors you can make it doesn't catch, but that's inherent in the stated problem/requirement. Can you give a minimal or at least small test case on which it falsely reports an error, or fails to report an error (you think) it should catch? ... Your variable 'comment' looks like it is... - Mon, Nov 1 2004 12:14 am 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/7ff11d2526b40b34 Inconsistent time zone - all new ---------------------------------- On Fri, 22 Oct 2004 10:55:40 +0100, "Swansea University Psychology" ... ... What runtime are you using? E.g. is your program compiled with MSVC* (uses M$ library -- static or dynamic?); mingw (_mostly_ M$ library); cygwin (its own pseudo-Unix library); something else (?). If the M$ library, does (only) the second system have an environment variable TZ set, either globally (in Control Panel / System) or in the process where your app is run (perhaps by a .BAT file)? At least in my limited testing, that overrides the OS... - Mon, Nov 1 2004 12:14 am 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/e58dc4643ce07c99 Binary files, little&big endian setting bits - all new ---------------------------------- On Thu, 28 Oct 2004 11:56:16 -0400, Eric Sosman wrote: <snip> ... anyone who thinks a bit about it (and knows the BCDIC history); even for ASCII significant chunks of the translation to and from EBCDIC (and thus card aka Hollerith) are systematic. (Otherwise concur.) Now, if you want an octet- parallel interface people will probably have trouble remembering, how about IEEE-488 (IIRC) GPIB nee HPIB? <G> - David.Thompson1 at worldnet.att.net ... - Mon, Nov 1 2004 12:14 am 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/df8099a70cd0a5a8 ======================================================================= You received this message because you are subscribed to the Google Groups "comp.lang.c". comp.lang.c http://groups-beta.google.com/group/comp.lang.c Change your subscription type & other preferences: * click http://groups-beta.google.com/group/comp.lang.c/subscribe Report abuse: * send email explaining the problem to [EMAIL PROTECTED] Unsubscribe: * click http://groups-beta.google.com/group/comp.lang.c/subscribe ======================================================================= Google Groups: http://groups-beta.google.com
