]> Kevux Git Server - fll/commit
Update: initialize string locations to {1, 0}
authorKevin Day <kevin@kevux.org>
Thu, 1 Mar 2012 04:51:38 +0000 (22:51 -0600)
committerKevin Day <kevin@kevux.org>
Thu, 1 Mar 2012 04:58:50 +0000 (22:58 -0600)
commit90f872daead4904f99598fc10a2fad03ffd70fea
treecde499536fc96401fcac0027ff14bf9398bc12cc
parent88005d37352d066e77a23971c6f9447014f58bc8
Update: initialize string locations to {1, 0}

This is done so that the start position is always after the stop position.
In such a case, this means that the range is undefined.
Originally. -1 was used, but that does not work if the position integers are unsigned.
Using {1, 0} allows for assigning an undefined state with unsigned integers.

Also note that the default of {0, 0} means start at 0 and stop at 0, which would return the value at position 0 and no other values after that first value.
level_0/f_strings/c/strings.h
level_3/fss_basic_list_read/c/fss_basic_list_read.c
level_3/fss_basic_read/c/fss_basic_read.c
level_3/fss_extended_read/c/fss_extended_read.c