|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T v
Length: 922 (0x39a) Types: TextFile Names: »vec.c«
└─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit └─⟦697af93db⟧ »EurOpenD3/network/snmp/mit-snmp.tar.Z« └─⟦57bbcbe75⟧ └─⟦this⟧ »./snmp/vec.c« └─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit └─⟦925ee6880⟧ »EurOpenD3/network/snmp/mit-snmp.900225.tar.Z« └─⟦a4bfa469c⟧ └─⟦this⟧ »./snmp/vec.c«
/* * $Header: vec.c,v 1.1 89/01/11 22:09:18 jrd Exp $ * Author: J. Davin * Copyright 1988, 1989, Massachusetts Institute of Technology * See permission and disclaimer notice in file "notice.h" */ #include <notice.h> #include <ctypes.h> #include <debug.h> #include <vec.h> #define vecBlank(c) \ (((c) == (CCharType) ' ') || \ ((c) == (CCharType) '\t') || \ ((c) == (CCharType) '\n') || \ ((c) == (CCharType) '\r')) CUnsfType vecParse (vec, vlen, text) CCharPtrType *vec; CUnsfType vlen; CCharPtrType text; { CUnsfType k; CCharType c; CBoolType intext; k = (CUnsfType) 0; intext = FALSE; while (((c = *text) != (CCharType) 0) && (k < vlen)) { if (vecBlank (c)) { if (intext) { *text = (CCharType) 0; intext = FALSE; } } else if (! intext) { *vec++ = text; intext = TRUE; k++; } text++; } return ((c != (CUnsfType) 0) ? (CUnsfType) 0 : k); }