From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,2afd440a210c7fb0 X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,df8a3dc583bf1f5f X-Google-Attributes: gid1164f8,public X-Google-Thread: 1014db,6bdc5c27a0dec527 X-Google-Attributes: gid1014db,public From: shoppa@alph02.triumf.ca (Tim Shoppa) Subject: Re: Compaq prefers Alpha over Merced! BUT OF COURSE, ALPHA * Date: 1998/09/08 Message-ID: <6t4dca$k0h$1@nntp.ucs.ubc.ca>#1/1 X-Deja-AN: 389199002 References: <0095000017115526000002L062*@MHS> <6t18af$p83$1@Starbase.NeoSoft.COM> <6t1i0l$241@web.nmti.com> <6t24vj$kep$1@Starbase.NeoSoft.COM> Organization: TRIUMF, Canada's National Meson Facility Newsgroups: comp.os.vms,comp.sys.dec,comp.lang.c In article <6t24vj$kep$1@Starbase.NeoSoft.COM>, Jordan Henderson wrote: >If nul-terminated string *constants* are a "feature" of the language, then >so are nul-terminated strings. It's been a while since you programmed in MACRO-11 or -32, isn't it? :-) Remember .ASCIZ ? MACRO VAX_MACRO_Assembler Directives .ASCIx .ASCIZ Performs the same function as .ASCII, except that .ASCIZ appends a null byte as the final character of the string. When a list or text string is created with an .ASCIZ directive, you need only perform a search for the null character in the last byte to determine the end of the string. Are you going to tell me that null-terminated strings are a "feature" of the PDP-11 instruction set because there's a MACRO-11 directive that creates them? (And, yes, the PDP-11 example is relevant here because that was the architecture that C was developed for.) Tim. (shoppa@triumf.ca)