Thread: problem in using gets()

  1. #1
    Registered User
    Join Date
    Jan 2011
    Posts
    113

    problem in using gets()

    when I use it .. its saying
    PHP Code:
    /tmp/ccAN0LVF.oIn function `main':
    reversew.c:(.text+0x29): warning: the 
    `gets' function is dangerous and should not be used. 
    how to fix it..

  2. #2
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,909

  3. #3
    Registered User
    Join Date
    Jan 2011
    Posts
    113
    Ok... I used fgets() for it. its working. Thanks by the way for information.. its really very useful.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. strcmp problem, whats the problem, i cant figure it out!
    By AvaGodess in forum C Programming
    Replies: 14
    Last Post: 10-18-2008, 06:45 PM
  2. Replies: 4
    Last Post: 10-16-2008, 07:30 PM
  3. sturct/pointer problem, and fscanf problem
    By hiphop4reel in forum C Programming
    Replies: 6
    Last Post: 07-28-2008, 09:40 AM
  4. Visual Studio Linker problem or my problem?
    By OOPboredom in forum C Programming
    Replies: 2
    Last Post: 04-13-2004, 12:32 AM
  5. syntax linked list problem & struct problem
    By beely in forum C Programming
    Replies: 5
    Last Post: 11-11-2002, 09:14 AM

Tags for this Thread