Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!ut-sally!husc6!rutgers!bellcore!faline!gtchen From: gtchen@faline.bellcore.com (George T. Chen) Newsgroups: comp.lang.c Subject: Allocation for pointers Message-ID: <1357@faline.bellcore.com> Date: Fri, 4-Sep-87 09:39:48 EDT Article-I.D.: faline.1357 Posted: Fri Sep 4 09:39:48 1987 Date-Received: Sat, 5-Sep-87 17:28:25 EDT Reply-To: gtchen@faline.UUCP (George T. Chen) Organization: Bellcore MRE Lines: 25 I have a question about the following program: main() { char *a; a = "text"; recurs(a); } void recurs(a); char *a; { strcat(a,"more text"); if (some conditional test) recurs(a); } As I understand it, I'm passing the address of the variable a into the routine recurs. At no point do I specify how large of a buffer a will eventually point to. Is there a limit and is it compiler dependent? -- +-----------------------------------------------------------------------------+ |What's a .signature? Life is an equation whose only solutions are irrational | |gtchen@thumper.bellcore.com ! gtchen@romeo.caltech.edu ! gtchen@where.am.i?. | +-----------------------------------------------------------------------------+