Re: should strstr return const char* ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sunday 28 February 2010 16:29:59 Jon wrote:
> I see this function on Ubuntu 9.10:
> 
>       char *strstr(const char *haystack, const char *needle);
> 
> Should it not return as const char * though?

man pages document the API only.  if you want to propose changing a function, 
you'd have to ask the glibc mainling lists and/or more likely the POSIX 
mailing lists.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux