comp.lang.c
[Top] [All Lists]

Re: Strings and arrays

Subject: Re: Strings and arrays
From: CBFalconer
Date: Fri, 28 Mar 2008 16:10:58 -0500
Newsgroups: comp.lang.c

Jim wrote:
> 
> 
> I have to create a function that will take a sentence and breakout
> the words and save them into an array.  For some reason, I can't
> get it working.  I keep getting a segmentation fault being caused
> by strcpy().  Can someone please tell me what I'm doing wrong:

Lots of things.  Consider a more flexible structure.  Take a look
at how id2id-20 works.  This effectively translates arbitrary words
into other arbitrary words.  Available at:

   <http://cbfalconer.home.att.net/download/>

-- 
 [mail]: Chuck F (cbfalconer at maineline dot net) 
 [page]: <                                cbfalconer.home.att.net">http://cbfalconer.home.att.net>
            Try the download section.


-- 
Posted via a free Usenet account from                                 www.teranews.com">http://www.teranews.com


<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy