X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/462fca95471224f85b85be911e72faee16cd1597..a4d00d5b72c57ebc93b5b96dc673894fe97cd0e7:/atc/struct.h?ds=sidebyside diff --git a/atc/struct.h b/atc/struct.h index 2cde703c..7ac4ba7f 100644 --- a/atc/struct.h +++ b/atc/struct.h @@ -1,6 +1,8 @@ +/* $NetBSD: struct.h,v 1.6 2006/06/07 09:36:39 jnemeth Exp $ */ + /*- - * Copyright (c) 1990 The Regents of the University of California. - * All rights reserved. + * Copyright (c) 1990, 1993 + * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * Ed James. @@ -13,11 +15,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors + * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * @@ -33,8 +31,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * from: @(#)struct.h 5.2 (Berkeley) 4/30/90 - * $Id: struct.h,v 1.2 1993/08/01 18:57:14 mycroft Exp $ + * @(#)struct.h 8.1 (Berkeley) 5/31/93 */ /* @@ -98,7 +95,7 @@ typedef struct { } LIST; typedef struct { - char name[10]; + char name[33]; char host[256]; char game[256]; int planes; @@ -106,6 +103,10 @@ typedef struct { int real_time; } SCORE; +#define SCORE_SCANF_FMT "%9s %255s %255s %d %d %d" +#define SCORE_NAME_LEN 33 +#define SCORE_GAME_LEN 256 + typedef struct displacement { int dx; int dy;