Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rutgers!gatech!prism!cc100aa From: cc100aa@prism.gatech.EDU (Ray Spalding) Newsgroups: comp.lang.c Subject: Re: Why does mkstemp() core dump on me? rewind()ing stdin... Message-ID: <16644@hydra.gatech.EDU> Date: 7 Nov 90 23:17:59 GMT References: <2626@ux.acs.umn.edu> Organization: Georgia Institute of Technology Lines: 15 In article <2626@ux.acs.umn.edu> edh@ux.acs.umn.edu (Eric D. Hendrickson) writes: [...] > char *template = ".psoptfXXXXXX"; [...] >/* THE FOLLOWING LINE CORE DUMPS */ > if ((tmp = mkstemp(template)) < 0) { [...] String constants may not be writable. Try: char template[] = ".psoptfXXXXXX"; -- Ray Spalding, Technical Services, Office of Information Technology Georgia Institute of Technology, Atlanta Georgia, 30332-0715 uucp: ...!{allegra,amd,hplabs,ut-ngp}!gatech!prism!cc100aa Internet: cc100aa@prism.gatech.edu