CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 10 of 10

Threaded View

  1. #6
    Lindley is offline Elite Member Power Poster
    Join Date
    Oct 2007
    Location
    Seattle, WA
    Posts
    10,895

    Re: strstr() Runtime Error - HELP!

    A null pointer access probably wouldn't come from an array overrun. Both are problems, but probably different ones.

    What's bugging me is the use of {} here:
    Code:
    	char s[]={"this is a simple string"};
    	char t[]={"is"};
    I'm not sure if it's actually wrong, but it is strange.
    Last edited by Lindley; March 10th, 2009 at 10:38 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured