shift() in C std lib
Steven W. Orr
steveo at syslang.net
Wed Dec 11 13:57:50 EST 2002
On Wed, 11 Dec 2002, Price, Erik wrote:
=>I'm wondering if there's a shift() function (similar to the one in Perl/
=>PHP/etc) in the C standard library? (I have access to the C std lib
=>that comes with Gentoo linux, if that matters any.)
=>
=>That would accept an array pointer and a char as an argument and allow
=>me to put that char at the beginning of the array?
You're not describing shift. You're describing push.
=>
=>If not I can write this but I wanted to try accessing the standard library.
=>(It's for a homework assignment.)
I think you're writing it. It'sabout two lines long :-)
=>
=>Is there a utility other than grep for finding useful functions in the
=>C std library?
yes. Use info, preferably from emacs. The entire info doc is available.
--
-Time flies like the wind. Fruit flies like a banana. Stranger things have -
-happened but none stranger than this. Does your driver's license say Organ
-Donor?Black holes are where God divided by zero. Listen to me! We are all-
-individuals! What if this weren't a hypothetical question? steveo at syslang.net
More information about the gnhlug-discuss
mailing list