Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1a 12/4/83; site rlgvax.UUCP Path: utzoo!linus!philabs!cmcl2!floyd!harpo!seismo!rlgvax!jack From: jack@rlgvax.UUCP (Jack Waugh) Newsgroups: net.lang.c Subject: sizeof "string" Message-ID: <1623@rlgvax.UUCP> Date: Fri, 27-Jan-84 00:00:16 EST Article-I.D.: rlgvax.1623 Posted: Fri Jan 27 00:00:16 1984 Date-Received: Sat, 28-Jan-84 05:48:56 EST References: <1318@ucbcad.UUCP> Organization: CCI Office Systems Group, Reston, VA Lines: 6 I have seen at least one compiler (I forget which) that gave 2 (the size of a pointer on that machine) as the size of a string. So it isn't a reliable portable practice to use sizeof on strings. Jack Waugh