Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!gvlf3.gvl.unisys.com!tredysvr!paul From: paul@tredysvr.Tredydev.Unisys.COM (Paul Siu) Newsgroups: comp.lang.c Subject: Is typedef char BUFFER[20] legal? Keywords: typedef, legality, style Message-ID: <1212@tredysvr.Tredydev.Unisys.COM> Date: 29 Jan 91 17:08:39 GMT Organization: Unisys Corporation, Tredyffrin, PA Lines: 18 Is the following statements legal in K&R C, and ANSI C? typedef char BUFFER[20]; . . . BUFFER sb; This seems to work on both the K&R compiler and the ANSI compiler at my work place, but is this going to break when the program is ported? Can anyone also tell me what is the most common style convention for type names, I usually put them all in capitals. Thanks Paul Siu paul@tredysvr.tredydev.unisys.com