Null pointer

This is a discussion on Null pointer within the C Programming forums, part of the General Programming Boards category; char *P how would i write, if *p is not pointing to null?...

  1. #1
    Microsoft. Who? MethodMan's Avatar
    Join Date
    Mar 2002
    Posts
    1,198

    Null pointer

    char *P

    how would i write, if *p is not pointing to null?

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    What do you mean?

    if( p != NULL )

    Or at initialization time?


    char buffer[1024];
    char *p = buffer;

    What exactly do you mean?

    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Microsoft. Who? MethodMan's Avatar
    Join Date
    Mar 2002
    Posts
    1,198
    i meant the first one, thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. addrinfo Structure Not Working
    By pobri19 in forum Networking/Device Communication
    Replies: 9
    Last Post: 10-22-2008, 11:07 AM
  2. Replies: 7
    Last Post: 06-16-2006, 10:23 PM
  3. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  4. Why am I getting these errors??
    By maxthecat in forum Windows Programming
    Replies: 3
    Last Post: 02-03-2006, 01:00 PM
  5. Quick question about SIGSEGV
    By Cikotic in forum C Programming
    Replies: 30
    Last Post: 07-01-2004, 08:48 PM

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