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

Re: C stuff




On Mon, 30 Mar 1998, KoReE wrote:
> On another note, I must remind those of you trying things like this, C is
> a more "low-level" language than perl and other extraction languages of
> this type (Perl was written in C itself).  You normally cannot just assign
> a character array to a function, and get what you want.  You'll usually
> have to painfully extract it at the lowlevel, or, if the function does
> happen to return a char, you'll probably have to use strcpy() or strncpy()
> (preferred) to copy the information to the array.  Always look at what
> values a function returns before assigning a variable to the function.
> It'll save you a lot of headaches in the end.  If you want more detail on
> getdents(), I can go further into it later :D

	Ok. I'll try this.
	I was trying to convert some PERL scripts to C so I can learn more
C programming. I though I was asking something difficult when I asked
someone in their 3rd year at U of Oregon and he didn't know either.
	Thanks.


	Bill Dunn


--
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.