From d93ce1e80550539edbf5a1cd7f6364efa94fa773 Mon Sep 17 00:00:00 2001 From: cancel Date: Wed, 8 Jan 2020 06:29:21 +0900 Subject: [PATCH] Cleanup --- thirdparty/sdd.c | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/thirdparty/sdd.c b/thirdparty/sdd.c index 9859258..61a0fd1 100644 --- a/thirdparty/sdd.c +++ b/thirdparty/sdd.c @@ -7,43 +7,6 @@ // Derived from gingerBill's public domain gb_string.h file. -/* Examples: */ -/* C example */ -#if 0 -#include "sdd.h" -#include -#include - -int main(int argc, char **argv) { - sdd str = sdd_new("Hello"); - sdd other_str = sdd_newlen(", ", 2); - str = sdd_catsdd(str, other_str); - str = sdd_cat(str, "world!"); - - printf("%s\n", str); // Hello, world! - - printf("str length = %d\n", sdd_len(str)); - - str = sdd_cpy(str, "Potato soup"); - printf("%s\n", str); // Potato soup - - str = sdd_cpy(str, "Hello"); - other_str = sdd_cpy(other_str, "Pizza"); - if (sdd_equal(str, other_str)) - printf("Not called\n"); - else - printf("Called\n"); - - str = sdd_cpy(str, "Ab.;!...AHello World ??"); - str = sdd_trim(str, "Ab.;!. ?"); - printf("%s\n", str); // "Hello World" - - sdd_free(str); - sdd_free(other_str); - -} -#endif - typedef struct sdd { size_t len; size_t cap;