[IRCServices Coding] local_set_cumodes

Trevor Talbot quension at softhome.net
Wed Jan 1 17:45:56 PST 2003


On Wednesday, Jan 1, 2003, at 17:04 US/Pacific, Ron wrote:

> was just curious as to something... in the function local_set_cumodes 
> you do:
> 	char buf[3]
>
> so that it fits 4 chars: 0 1 2 3

Might want to brush up on your C ;)

Array declarations are size-based: char buf[3] holds 3 chars.
Only indexing is zero-based.

-- Quension