Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!rutgers!mcnc!gatech!prism!gt1619a From: gt1619a@prism.gatech.EDU (Net Runner Mark V) Newsgroups: comp.sys.amiga.programmer Subject: Problems with string handling... Message-ID: <22209@hydra.gatech.EDU> Date: 17 Feb 91 20:42:34 GMT Organization: Georgia Institute of Technology Lines: 40 I have been having a problem in writing a file parser (which reads in a file which contains a database of information and separates and translates the info into data files for another suite of programs). Problem: system crashes when I do this. It gets as far as the string copy, but falls apart at the string concatenation . I'm using Manx. The code: - . - - . - char type[2], *seqName, *tblName, *string; - . - fscanf(input," %s;",string); strcpy(seqName,string); strcat(seqName,".seq"); - . - - . - I have also tried: seqName = strcat(seqName,".seq"); which also causes the damned thing to crash. Any ideas? -Thanx. ------------------------------------------------------------------------- James D. McIninch ------------------------------------------------------------------------- School of Applied Biology Georgia Institute of Technology, Box 31619 Atlanta, Georgia 30332 uucp: ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!gt1619a Internet: gt1619a@prism.gatech.edu ************************************************************************** * The goal: to design CAD/CAM software and hardware for the creation * * of living things... * **************************************************************************