diff options
Diffstat (limited to 'linked_list.inc.h')
-rw-r--r-- | linked_list.inc.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/linked_list.inc.h b/linked_list.inc.h index 6a0546c7..6bf3d158 100644 --- a/linked_list.inc.h +++ b/linked_list.inc.h @@ -164,4 +164,15 @@ int RESET(LLIST(TYPE)) ( LLIST(TYPE)* llist ) { return 0; } +FMT_F(LLIST (TYPE)) { + int seek = 0; + fmtf("("); + FOR(LLIST(TYPE), link, this) { + seek += FMT(TYPE)(link->value, buf + seek); + } + fmtf(")"); + + return seek; +} + #endif /* TYPE */ |