• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Where is the global pointer 'index' declared in Foundation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where is the global pointer 'index' declared in Foundation?


  • Subject: Re: Where is the global pointer 'index' declared in Foundation?
  • From: Andrew Pinski <email@hidden>
  • Date: Sat, 6 Dec 2003 03:48:24 -0800

On Dec 6, 2003, at 03:32, Thomas Lachand-Robert wrote:

I just discovered that there is a global variable named 'index' of pointer type declared somewhere in Foundation; but I cant find it! If you fire a new Foundation project with only that code:

#import <Foundation/Foundation.h>

int main()
{
return index;
}



index is a function:
char *
index(const char *s, int c);


HISTORY
A index() function appeared in Version 6 AT&T UNIX. Its prototype
existed previously in <string.h> before it was moved to <strings.h> for
IEEE Std 1003.1-2001 (``POSIX.1'') compliance.



Thanks,
Andrew Pinski
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Where is the global pointer 'index' declared in Foundation? (From: Thomas Lachand-Robert <email@hidden>)

  • Prev by Date: Where is the global pointer 'index' declared in Foundation?
  • Next by Date: -(BOOL)isFirewireDisk;(NSString*)path
  • Previous by thread: Where is the global pointer 'index' declared in Foundation?
  • Next by thread: Re: Where is the global pointer 'index' declared in Foundation?
  • Index(es):
    • Date
    • Thread