Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!umich!sharkey!msuinfo!news From: schultzd@kira.msu.edu (David Schultz) Newsgroups: comp.sys.atari.st Subject: Environment Variables from Desktop...? Keywords: see subject... Message-ID: <1990Jul12.044328.26936@msuinfo.cl.msu.edu> Date: 12 Jul 90 04:43:28 GMT Expires: 30-jun-90 Sender: news@msuinfo.cl.msu.edu Distribution: na Organization: Michigan State University, College of Engineering Lines: 26 I would like to write a TOS application which allows the setting of environment variables such that a program called from the desktop has access to them. Namely, I want to call cc (Sozobon C) from the desktop. I was attempting to use the putenv() function, but to no avail: error_no = putenv( environment ); /* int error_no */ /* char* environment */ /* environment = (char*)malloc(256*sizeof(char)) */ /* The value of environment is of the form = */ This is the first 'useful' thing I've tried to write for my Atari, so even if it already exists in some form or other I would still like to get mine working. Even if only to learn more about how this machine works... thanks... -- David W. Schultz (Armaggedon Software Development) Michigan State University - Association for Computing Machinery schultzd@frith.egr.msu.edu OR schultzd@cpsin.cps.msu.edu