/*****************************************************************************/ /* */ /* UNIT: NTL1_Label_Length (Level 1 library routine) */ /* */ /* Author: Nikola Stojanovic */ /* */ /* Revision: 23 SEP 94 Version 1.0 */ /* */ /* Function: */ /* */ /* */ /*****************************************************************************/ #include #include #include #include "ntl1.h" /*****************************************************************************/ int NTL1_Label_Length (label_ptr label) { int length; label_ptr current; length = 0; current = label; while (current != NULL) { length += strlen (current -> text); current = current -> next; } return length; }