[DGD] Explode cloud-server's /lib/String.c
nikoroleva
natasha.i.koroleva at gmail.com
Sun Sep 30 16:15:45 CEST 2018
If you want to explode a very long string in /lib/String.c, how would
you implement this?
If you want to improve on an attempt, one may be found here
https://github.com/november-kilo/nk-dgd/blob/master/cloud-server/src/lib/StringPager.c
Two major assumptions are the file being exploded has been run through
shell fmt command (or a LPC break_string function) with line widths <
80, and the file ends with a newline. It works for typical help files
but runs out of ticks for files which are well within the limits of
String and arrays; perhaps it's a valid solution that just needs more
ticks; perhaps running out of ticks means it needs to be refactored or
just rewritten.
Regards
More information about the DGD
mailing list