Thread: inappropriate "initialization makes pointer from integer without a cast" warning

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    1,262
    Maybe you could use strptime? Not sure if that's better, though. And it needs _XOPEN_SOURCE as well (apparently this is for UNIX compatibility or so...).

  2. #2
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by EVOEx View Post
    Maybe you could use strptime? Not sure if that's better, though. And it needs _XOPEN_SOURCE as well (apparently this is for UNIX compatibility or so...).
    Yeah. Like, OMG:
    Code:
    	struct tm data;
    	strptime("1/1/10 12 AM", "%D %I %p", &data);
    That is too crazy. [Sarcasm] Somebody better write a more user friendly function, like "getdate".
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 28
    Last Post: 07-16-2006, 11:35 PM
  2. "assignment makes integer from pointer without a cast"
    By Freez3L in forum C Programming
    Replies: 4
    Last Post: 11-04-2002, 04:26 AM
  3. assignment makes pointer from integer
    By crescen7 in forum C Programming
    Replies: 4
    Last Post: 06-25-2002, 10:08 PM
  4. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM
  5. Replies: 3
    Last Post: 01-14-2002, 12:13 PM