/* * Copyright (c) 1992 by the University of Southern California * * For copying and distribution information, please see the file */ /* Author: Steven Augart, swa@isi.edu */ #include #include /* Return the length of a sequence. Works like the Common Lisp LENGTH function on sequences. */ int length(TOKEN s) { int len; for (len = 0; s; s = s->next, ++len) ; return len; }