Like Tree2Likes
  • 1 Post By anduril462
  • 1 Post By suryak

problem in using gets()

This is a discussion on problem in using gets() within the C Programming forums, part of the General Programming Boards category; when I use it .. its saying PHP Code: / tmp / ccAN0LVF . o :  In  function ` main': reversew.c:(.text+0x29): warning: the  ...

  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,444
    Salem likes this.

  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.
    anduril462 likes this.

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, 08:14 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21