Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!cs.umn.edu!ariel.unm.edu!nmsu!opus!cshort From: cshort@haywire.crl (Spmg*d, Lord of Potted Meat Product) Newsgroups: comp.lang.c Subject: help me with strings Message-ID: Date: 20 May 91 22:01:06 GMT Sender: news@NMSU.Edu Distribution: comp Lines: 27 c novice here i have a large string about 9k and there are some characters i need to strip out '^M', i'm not sure how i can do that. i was thinking copy the sting into an array then just scan for ^M and replace with spaces. unfortunitly i don't speak enough c to do this. the string is called dna, and the array is called dnary any ideas. thanks cshort@nmsu.edu -- |----------------------|---------------------- | |the world is spam and | Chris Short | | we are but the key | Computing Research Labatory | |--------|-------------| Box 30001/3 CRL | | New Mexico State University | | Las Cruces, NM 88003-0001 | | Email: Cshort@nmsu.edu Fax:505 646 6218|-------------------| | Voice: 505 646 6216 |SpamKey productions| | -------------------------|-------------------|