Re: Is linux your daily driver? Hardware and Software Linux and Unix by Dani Wow, I'm surprised how many people here are primarily Linux users compared to how infrequently our Linux forum gets posted in these days. Re: Are we being played by AI? Let's Discuss! Community Center Meta DaniWeb by Dani Having a very, very difficult time. My eye is swollen shut and I’m in danger of losing my vision as the shingles rash gets closer and closer to my cornea. Re: 💻 What’s the First App You Install on a Fresh Windows Machine? Hardware and Software Microsoft Windows by Reverend Jim … files. With OneDrive active, anything that goes into My Documents gets stored on C. Not only that, but those files get… Re: Why my created link is not updating as a backlinks? Digital Media Digital Marketing Search Engine Strategies by MasoodDidThat … backlinks, check on tools like semrush and ahref. A backlink gets updated when google index the page where you have submitted… Re: Ensuring data consistency and integrity Hardware and Software Cloud-based Apps by Dani … to use by passing in a server key into all gets and sets. We make sure that all cached items that… Re: A reliable way of detecting AI content? Hardware and Software Cloud-based Apps by Dani AI generated content is very obvious to me, as well. However, DaniWeb gets a ton of AI generated submissions every day and I am looking for a reliable way of blocking it without having to delete the posts after-the-fact, and also without having to stick all new posts into a moderation queue. Re: Looking for Apple Developer enterprise account Programming Software Development by Salem And who's head is in the noose when you mess things up with my enterprise account? Like for example, bad software gets signed with my key, or your "company" is in an embargoed jurisdiction? If you need it, buy your own. Re: Looking for Apple Developer enterprise account Programming Software Development by Sammi_2 … my enterprise account? > > Like for example, bad software gets signed with my key, or your "company" is… Re: How to Implement Lazy Loading for Faster Web Portals Programming Web Development by Dani … how much traffic you get. For example, suppose a webpage gets frequently updated so you decide to cache for only an… Re: Gets on linux - not working :( Programming Software Development by Narue gets() is broken by design and you should use fgets() instead, … Re: gets Programming Software Development by L7Sqr … for an open source implementation of it (FreeBSD, for example: [gets.c](http://svnweb.freebsd.org/base/stable/10/lib/libc… gets Programming Software Development by harikrishna439 I get a warning message while executing a C program containg 'gets'.Is there any way to avoid this.Currently I am using ubuntu OS> Re: gets Programming Software Development by Ancient Dragon [URL="http://www.gidnetwork.com/b-56.html"]Don't use gets()[/URL] Read that link -- it contains a lot of good-to-know dos-and-don'ts. Re: gets Programming Software Development by gerard4143 [QUOTE=harikrishna439;1337910]I get a warning message while executing a C program containg 'gets'.Is there any way to avoid this.Currently I am using ubuntu OS>[/QUOTE] Yes, use a crappy compiler that doesn't warn you of 'potentially' bad...bad programming practises. And its compiling the program not executing it that generates the warning... gets Programming Software Development by anwar sholi 2 hii i want to know how (gets)works Re: gets Programming Software Development by Schol-R-LEA No, you don't. You want to stay away from `gets()` entirely, in fact. The function is extremely dangerous, because it is prone to buffer overruns, and no experienced C/C++ programmer still uses it. Re: gets() problem in C Programming Software Development by Ravalon … age; printf("\nEnter name : "); gets(name); printf("\nEnter age: "); scanf… age; printf("\nEnter name : "); gets(name); printf("\nEnter age: "); scanf…flush_stdin(); printf("\nEnter address : "); gets(add); printf("\n\n\nName is %… Re: gets() problem in C Programming Software Development by ankit_the_hawk …age); printf("\nEnter address : "); gets(add); printf("\n\n\nName is %s…int age; printf("\nEnter name : "); gets(name); printf("\nEnter age: "); scanf(&… flush_stdin(); printf("\nEnter address : "); gets(add); printf("\n\n\nName is %s… gets() working erratically Programming Software Development by PrimePackster … of 20 people using structures. But when i run it, gets gives me error....... Here is the code... [CODE]// Hihi.cpp…<<"Enter the district"<<endl; gets(addr[i].district); cout<<"Enter the state…"<<endl; gets(addr[i].state); cout<<"Enter the pincode… Re: gets() problem in C Programming Software Development by thisun …[20],add[20]; int age; printf("\nEnter name : "); gets(name); printf("\nEnter age: "); scanf("%d"…;,&age); printf("\nEnter address : "); gets(add); gets(add); //repeat gets(); printf("\n\n\nName is %s",name… Re: Gets on linux - not working :( Programming Software Development by can_surmeli …'s going on yashsaxena's side is the problem with gets() function itself. It's not something new & it's… are based on. e.g. If you've continuous gets() functions or a gets() function after a scanf() function then compilers skip… that gets() function. Sure, I can guide you better if you've … Re: gets() working erratically Programming Software Development by Narue … is largely irrelevant. The important piece of information is that gets() is quite literally impossible to use safely. There's always…] char buf[N]; cin >> buf; // No better than gets() [/code] But at least here there's a fix for… Re: gets() working erratically Programming Software Development by PrimePackster … is largely irrelevant. The important piece of information is that gets() is quite literally impossible to use safely. There's always…] char buf[N]; cin >> buf; // No better than gets() [/code] But at least here there's a fix for… gets() problem in C Programming Software Development by ankit_the_hawk I have been experiencing problems in using the gets() command in C. Whenever I use it twice followed by …],add[20]; printf("Enter name : "); gets(name); printf("Enter address :"); gets(add); printf("Enter age :"); scanf… Re: gets() working erratically Programming Software Development by zeroliken Don't use gets() -->[URL="http://www.gidnetwork.com/b-56.html"]Article explaining why not[/URL] Try to use fgets() instead Re: gets() working erratically Programming Software Development by WaltP #1) What [B]zeroliken[/B] said #2) It's C++. Why are you using the terrible and dangerous [B]C[/B] function [iCODE]gets()[/iCODE]? Use [iCODE]getline()[/iCODE]. #3) [ICODE]cin[/ICODE] is your problem. Reading an [I]int[/I] leaves the NEWLINE in the input buffer. The solution has been explained many many times on this site -- do a search. Re: gets() working erratically Programming Software Development by PrimePackster [QUOTE=zeroliken;1737194]Don't use gets() -->[URL="http://www.gidnetwork.com/b-56.html"]Article explaining why not[/URL] Try to use fgets() instead[/QUOTE] Thank you very much! That explained a-lot. Re: gets() working erratically Programming Software Development by PrimePackster … using the terrible and dangerous [B]C[/B] function [iCODE]gets()[/iCODE]? Use [iCODE]getline()[/iCODE]. #3) [ICODE]cin[/ICODE] is… Re: gets() problem in C Programming Software Development by Salem …/cgi-bin/smartfaq.cgi?answer=1049157810&id=1043284351"]gets()[/URL], it is a totally unsafe function. Using scanf() comes… of leaving the newline behind, ready to mess up your gets() calls. Always use [INLINECODE]char buff[BUFSIZ]; fgets( buff, sizeof… Re: gets() problem in C Programming Software Development by Aia … you C programming, all of them teach you to use gets() and scanf() as the default to read input. I understand… you to do some search in this forum for the gets() and scanf() and you will learn why your code has…