comp.lang.c http://groups-beta.google.com/group/comp.lang.c
Today's most active topics: * How to create a new directory in C - 15 new http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2ec05d6e878117cc * Crazy stuff - 10 new http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/3bdab6e630859d59 * hashlib package - 9 new http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/e5f87805e1fd8c3f * install source code to a drive other than "C:\" ? - 9 new http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/634b8bae451a91be * address of a statement in C - 8 new http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/9c7bf5671accbcf6 Active Topics ============= hashlib package - 9 new ---------------------------------- Andy wrote: ... I don't understand the question. None of the things you mention exist in standard C, so those examples don't help. As I said in the manual, it handles putting things away, and finding them again later. I even described all the function calls to it. ... - Sat, Nov 6 2004 12:25 am 9 messages, 9 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/e5f87805e1fd8c3f How to create a new directory in C - 15 new ---------------------------------- ... Are you aware that your original string contains a formfeed character? ... - Sat, Nov 6 2004 12:38 am 15 messages, 10 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2ec05d6e878117cc Walking a hash table created by hcreate_r()/hsearch_r() ? - all new ---------------------------------- ... Those are not standard C functions, so we can't answer in the context of this newsgroup. Try reading your documentation for those functions and/or asking in a newsgroup where they're topical. -Mike ... - Sat, Nov 6 2004 12:50 am 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/df2553fffbcce0ed static cons and static - 2 new ---------------------------------- andy wrote: ...... - Sat, Nov 6 2004 1:05 am 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/36a6bf6e5b6afa3b sig_atomic_t - 2 new ---------------------------------- how is atomicity guaranteed on say a 32 bit architecture? or a pentium? because doesn't sig_atomic_t have to be an alias for a type that is the smallest unit (a signed char or unsigned char)? if so, then on a 32 bit architecture, and where char is 8 bits, you can't get atomicity, can you? and does this mean sig_atomic_t is useless? if not, then what type of magic would be implemented to guarantee such an atomic write? It doesn't seem possible. ... - Sat, Nov 6 2004 1:54 am 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/508401c550f64124 address of a statement in C - 8 new ---------------------------------- ... Just put a label there - you don't need an address. ... Goto the label. .. . - Sat, Nov 6 2004 2:28 am 8 messages, 6 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/9c7bf5671accbcf6 Why C? - 3 new ---------------------------------- On Thu, 4 Nov 2004 23:14:55 +0100 ... So where do you put your break point when you don't know which bit of code will be executed when you hit a key? Answer, you don't oblody know where to put your break point. ... Yes Dan, it is hell. I would never write code like that myself and as part of the ongoing development I am simplifying it.... - Sat, Nov 6 2004 2:06 am 3 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2501c2e7176dbf Nice way to do help screen output? - all new ---------------------------------- "Richard Tierney" wrote ... such as strings, images, sound files and so on into the program. However this means that the listing is no longer portable. Another way is to write a function that wraps and left-justifies your string. This is probably the best solution, so long as you have a monospaced font. With a variable pitched font, the function is still possible to write, but much more difficult, much less generally useful, and probably more trouble than it is worth. The third approach is to write your own... - Sat, Nov 6 2004 4:00 am 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/2e257ce452b7bbeb memmem function - 3 new ---------------------------------- I would like to know what does the following code in c-language do int memmem( void *m1, int size1, void *m2, int size2) ?? ... - Sat, Nov 6 2004 4:55 am 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/761668fd26c14a1 Post length for code. - all new ---------------------------------- In article , ... Very few people consider their own beliefs "extreme", regardless of what they (those beliefs) are. My hat is off to Derrick for being able to poke a little fun at himself. ... - Sat, Nov 6 2004 6:54 am 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/a6e755232874d6b5 Character arrays - 4 new ---------------------------------- Hi I observed something while coding the other day: if I declare a character array as char s[0], and try to use it as any other character array..it works perfectly fine most of the times. It holds strings of any length. I guess what is happening here is that this array initially holds only '\0' and hence is of length 1. But sometimes, when I tried to write some functions and do some manipulations on such character arrays, the behavior is erratic..they result in segmentation fault sometimes,when I try to store certain... - Sat, Nov 6 2004 7:02 am 4 messages, 4 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/d7360ceb0613160 Not STD C is "not C" ? ----WAS: Re: C to Java Byte Code - 8 new ---------------------------------- Alfred Z. Newmane coughed up: ... I can't tell you how many times I've seen someone reply heatedly ... I think that these days, the server storage and internet bandwidth issues are such that fully quoted everything all the time isn't going to kill anyone. {author ducks inevitable flame} And, ironically, I've just been told this, in microsoft.public.windows.inetexplorer.ie6_ outlookexpress: ... {chuckle}. ... - Sat, Nov 6 2004 7:19 am 8 messages, 5 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/88cb533585cafed4 Just a question - 4 new ---------------------------------- Hi; I am trying to find the position of the maximum element of and array using divide-and-conquer method. Following is the code I am trying. ... int msort( char list[], int n) { int i, half1, half2; char arr1[MAX/2+1]; char arr2[ MAX/2+1]; if(n ==1) return 0; else if (n==2){ if(list[0]>list[1]) return 0; else return 1; ... { ... int main() { int i, n; char array[MAX]; n = 7; array[0] = 'A'; array[1] = 'B'; array[2] = 'C'; array[3] = 'D'; array[4] = 'E'; array[5] = 'F'; array[6] = 'X';... - Sat, Nov 6 2004 7:39 am 4 messages, 4 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/8415b06da54597 (omission) 10 limiting display - 4 new ---------------------------------- Hi, i appreciate your work very much but i am doing my college project and I cannot use anything except pure C programming. I cannot use other programming language such as c++ sorry to trouble but this is the last bit of my program that cannot work I will not bother anymore if I can limit 10 employee per page thank you ... - Sat, Nov 6 2004 9:38 am 4 messages, 4 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/26431e15de0633b5 Giving the preorder & inorder lists, How can be constructed the corresponding B-TREE ? - 3 new ---------------------------------- ... do your own homework. ... - Sat, Nov 6 2004 11:28 am 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/68744af9e196542d I can take it deep - all new ---------------------------------- ... Thank God! ... - Sat, Nov 6 2004 11:31 am 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/3e6f33a9175539f3 Nested Statements. - 2 new ---------------------------------- ... Infinity :) Seriously, my limit would be about 20, i.e. when the indentation reaches the middle of the screen. ... What has the above to do with C? ... No. ... Yes, there is. But why? (One way could be using a lot of gotos. But then again, why?) Peter ... - Sat, Nov 6 2004 3:09 pm 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/109fb256fab0acc7 vulnerabilities - all new ---------------------------------- ... ITYM very easy :-) ... - Sat, Nov 6 2004 3:31 pm 1 message, 1 author http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/5f5c39262f0a735e install source code to a drive other than "C:\" ? - 9 new ---------------------------------- My "C:\" is getting full. What's the best way to install "wxWindows" without taking up 115 MB from my "C:\" ? Why do the following: MS Visual Studio, wxWindows, Borland C++, Stingray Objective Studio, ARM SDT, etc. like to install source code to the "C:\" drive? ... - Sat, Nov 6 2004 3:31 pm 9 messages, 6 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/634b8bae451a91be Crazy stuff - 10 new ---------------------------------- ... char *str = "blah"; is allowed to be placed in read-only memory. The data cannot be modified. char str[], however, must be placed in memory modifiable by you (i.e. the stack). ... - Sat, Nov 6 2004 9:47 pm 10 messages, 8 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/3bdab6e630859d59 Memory allocation - 2 new ---------------------------------- Rafi Kfir scribbled the following: ... Yes. ... No. The memory is still there, even if local pointer variables pointing to it have gone out of scope. It's the same as having this code: int getnumber() { int a = 1; return a; ... and asking whether the return value can be used, because the number 1 was freed when the function returned. ... - Sun, Nov 7 2004 12:59 am 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/842f68391c08f38d sizeof dynamic array - 7 new ---------------------------------- hi, i would like to know how to calculate the size of a dynamic array created using a dereference declaration like int *numbers and allocating via malloc or calloc: numbers=(int *)malloc(sizeof(int)*10); using sizeof(numbers) will return the pointers size... is there a possibility? [EMAIL PROTECTED] - Sun, Nov 7 2004 1:32 am 7 messages, 7 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/34e81ca8b269e1c3 Argument Processing - 3 new ---------------------------------- ... Just a question - were parentheses EVER required on a 'return' statement in C? ... - Sun, Nov 7 2004 2:48 am 3 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/deee1550c7aee70 EVIL FBI SADISTS should be KIDNAPPED and TORTURED for 3 YRS - 2 new ---------------------------------- Someone emailed and requested me to post it on Usenet newsgroups. Sadistic FBI agents should be tortured the way how FBI sadists and perverts tortured this poor guy (non-muslim) for three years and continue to torture him even after he left america tracking him with implanted transponder chips and other methods. FBI is an evil organization and those FBI sadists and perverts deserve to be kidnapped and their eyes gouged, noses and ears chopped off, forced to eat their own feces and drink their own piss and extra hot... - Sun, Nov 7 2004 1:57 am 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/4c059e652a7438 Newbie: Output to a file - 5 new ---------------------------------- Hello! I'm getting data from the serial port which is printed on the screen: do { res = read(fd,buf,48); buf[res]=0; fprintf(stdout,"%s\n",buf); ... So far so good. Data is received and printed out. But as soon as I try to write that data in a file it doesn't work. I tried openening a file and using fprintf(fp,"%s\n",buf); : my program seems not to execute the above code, although the output-file was opened correctly... and on the commandline "./ myprog > ouput.txt" creates the output.txt, but no data occurs...... - Sun, Nov 7 2004 3:58 am 5 messages, 4 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/cafbf0aedb5969fa News.Individual.NET does not allows postings in clc [OT] - 3 new ---------------------------------- News.Individual.NET server is rejecting my post to clc. All other NGs are OK. I posted via google. What is going on? [Sorry for the off-topic question] ... - Sun, Nov 7 2004 5:24 am 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/80fc87e02458a2e2 Stupid Americans! -- Stupid... Stupid... STUPID!!! _____________---_ adamz - 2 new ---------------------------------- You blithering idiots! You re-elected that imbecile George Bush as your President. Hes a complete moron and so are most of you! - Dont you care what the rest of the world thinks of you? Dont you care what impact American foreign policy has on the rest of the planet? Does Iraq look like a success to anyone? Doesnt it bother you that hes alienated every friend you have? What were you thinking??? - Prior to this, it was American policy and the American government that was so universally hated around the world. Now it's going to be... - Sun, Nov 7 2004 6:22 am 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/ceb3a1744c832427 simple c-code - 8 new ---------------------------------- Hi all. I am studying computer security, and I got this short and simple (?) c- code. Something is logical wrong in this code, and if used in the wrong hands of someone, it could be taken advantage of. Here is the code: main () { char buffer[1024]; GetPassword(buffer); ... ... /*/ int GetPassword (char * buffer,char *username) { ... ... Now, I am not a programmer, but is it correct that the logical fault in this program is that the function takes to arguments, and only 1 argument is sent to it? Could this be... - Sun, Nov 7 2004 10:50 am 8 messages, 8 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/aadecab38e4324ed Doubts:Steve Summit's page/Chapter 22 - 2 new ---------------------------------- Hi all, Please clarify the following piece of code: <CODE> /* delete node containing i from list pointed to by lp */ struct list *lp, *prevlp; for(lp = list; lp != NULL; lp = lp->next) { if(lp->item == i) { if(lp = = list) //Confusion!! list = lp->next; else prevlp->next = lp->next; break; ... I have a confusion as to what is meant by `list' in the `if' statement. That appears to me to be a typo... Regards Suman ... - Sun, Nov 7 2004 9:03 pm 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/c900023a84c1a83d bitness of machine using C language - 5 new ---------------------------------- How to identify if the given machine is 8/16/32 bit using C code ??? printf( "Word length = %d", sizeof(int)); Doesn't that depend on the compiler you are using for compiling that piece of code??? I think that there are compilers that use 4 bytes for int irrespective of the underlying hardware ... please correct me if I am wrong :) Actually I think to check the bit ness of machine ... we need to check how much bit processor we are using ... and may be that we can know if we know the size of the data bus or cpu... - Sun, Nov 7 2004 9:19 pm 5 messages, 4 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/48afc7bc5e0675a6 Jobs using C - 3 new ---------------------------------- I was wondering what the current job opportunities in C are these days. What jobs do C programmers hold? What businesses still use C? Where can a C professional expect to get a job using C? ... - Mon, Nov 8 2004 12:08 am 3 messages, 2 authors http://groups-beta.google.com/group/comp.lang.c/browse_thread/thread/df1e378aad3bcd ======================================================================= 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
