Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!umn-d-ub!umn-cs!ems!rosevax!richw From: richw@rosevax.Rosemount.COM (Rich Wagenknecht) Newsgroups: comp.lang.c Subject: MSC-all C's Message-ID: <3094@rosevax.Rosemount.COM> Date: Wed, 11-Nov-87 09:53:50 EST Article-I.D.: rosevax.3094 Posted: Wed Nov 11 09:53:50 1987 Date-Received: Sat, 14-Nov-87 04:46:36 EST Organization: Rosemount Inc., Eden Prairie, MN Lines: 16 Keywords: functions, memory models I have two questions: 1) What happens in C when a function returns a value which the calling line does not assign to a variable? Where does this value end up? (example: strcpy(str1,str2); ) Could someone explain the process that is gone through when a function is called? 2) Specific to IBM Pc compilers. I am trying to write some disk routines (using DOS interrupts <-sp?) I am not sure which memory model I will need for a large application program I will soon write. How can I generalize these routines to work with any memory model. I am specifically concerned with pointers (near/far). Thankyou in advance. Rich Wagenknecht