Thread: identifier question..

  1. #1
    Banned
    Join Date
    Oct 2008
    Posts
    1,535

    identifier question..

    what
    %29[^$] means ??
    %10s
    %*c
    %*11c
    %*s
    i didnt find them at google
    Last edited by transgalactic2; 03-25-2009 at 03:27 PM.

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    Are these format codes for printf or something? What context did you find them in?

  3. #3
    Banned
    Join Date
    Oct 2008
    Posts
    1,535
    in fscanf

  4. #4
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612

  5. #5
    Banned
    Join Date
    Oct 2008
    Posts
    1,535
    there is no explanation on
    [^$]

    in this link

  6. #6
    Banned
    Join Date
    Oct 2008
    Posts
    1,535
    so if i say
    %*c
    means ignore one char??

  7. #7
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    When YOU did a little test of this, what did YOU discover?

  8. #8
    Banned
    Join Date
    Oct 2008
    Posts
    1,535
    i read that %*c means ignore one char
    why when it appears here
    Code:
    fscanf(fold,"%29[^$]%10s%38[^$]%*c",details1old,teold,details2old);
    means ignore the rest??
    it should be ignore one char
    ??

  9. #9
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Read the manual again, obviously you missed the point. Take note of what it says about whitespace.

    How is your book going btw?

  10. #10
    Banned
    Join Date
    Oct 2008
    Posts
    1,535
    what did i missed?
    give me that part
    i read that it ignores this "type"
    so the type is "c"
    so it ignores a char

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. ras.h errors
    By Trent_Easton in forum Windows Programming
    Replies: 8
    Last Post: 07-15-2005, 10:52 PM
  2. Maximizing a Console Window Full Screen
    By philvaira in forum Windows Programming
    Replies: 10
    Last Post: 08-13-2004, 02:27 AM
  3. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 08:57 AM
  4. error: identifier "byte" is undefined.
    By Hulag in forum C++ Programming
    Replies: 4
    Last Post: 12-10-2003, 05:46 PM
  5. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM