From: "A. Sinan Unur" Newsgroups: comp.os.msdos.djgpp Subject: Re: Some qusestions Date: Wed, 14 Jan 1998 12:40:27 -0600 Organization: Cornell University Lines: 19 Sender: asu1 AT cornell DOT edu (Verified) Message-ID: <34BD069B.2FE5@cornell.edu> References: <34BCDB23 DOT 6A22 AT wxs DOT nl> NNTP-Posting-Host: 128 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Nils van den Heuvel wrote: > And how do cut this string into little pieces: > > set ultrasnd=220,1,1,11,5 > (it's an environment variable) > > i want to get these pieces: > 220 > 1 > 1 > 11 > 5 > > in a variable of their own.... > Can someone help me with this? you can use strspn to parse the string. -- Sinan