Thread: sscanf causing problems

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    10

    sscanf causing problems

    Hello,
    I am trying to use sscanf in a program. It compiles fine, but it is causing the run to hang up everytime.
    This is the code that does it. If I comment it out, the program runs fine without it, just doesn't function, of course.
    Code:
    sscanf((chrString),"%c%c%c", 
              &gObj->vertices[count].xCoord,	
             &gObj->vertices[count].yCoord,
             &gObj->vertices[count].zCoord);
    Any Idea why this would be?

    Stephen
    Last edited by takamineg240; 09-24-2006 at 05:48 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. sscanf matching problems
    By KBriggs in forum C Programming
    Replies: 10
    Last Post: 06-23-2009, 02:20 PM
  2. No clue how to make a code to solve problems!
    By ctnzn in forum C Programming
    Replies: 8
    Last Post: 10-16-2008, 02:59 AM
  3. sscanf problems ...
    By pic-o-matic in forum C Programming
    Replies: 5
    Last Post: 07-30-2008, 02:23 PM
  4. strlen causing my program to freeze
    By Beowolf in forum C Programming
    Replies: 2
    Last Post: 09-11-2007, 04:09 PM
  5. SSCANF help
    By mattz in forum C Programming
    Replies: 7
    Last Post: 12-10-2001, 04:53 PM