diff options
author | Stan Cox <scox@redhat.com> | 2008-05-29 14:46:38 -0400 |
---|---|---|
committer | Stan Cox <scox@redhat.com> | 2008-05-29 14:46:38 -0400 |
commit | c39d889155d4c9365bd27691d22a92c447ced976 (patch) | |
tree | 64b56069b0435ac09564ba983bea154a9747bcbe /runtime/tests/string/string3.c | |
parent | ef63732e82dd7979dcf608ba6ed4528e150b47ac (diff) | |
download | systemtap-steved-c39d889155d4c9365bd27691d22a92c447ced976.tar.gz systemtap-steved-c39d889155d4c9365bd27691d22a92c447ced976.tar.xz systemtap-steved-c39d889155d4c9365bd27691d22a92c447ced976.zip |
SW5106 Remove old map and histogram formatting code
Diffstat (limited to 'runtime/tests/string/string3.c')
-rw-r--r-- | runtime/tests/string/string3.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/runtime/tests/string/string3.c b/runtime/tests/string/string3.c deleted file mode 100644 index 3982a8e1..00000000 --- a/runtime/tests/string/string3.c +++ /dev/null @@ -1,45 +0,0 @@ -/* test of Strings */ - -/* use very small buffer size for testing */ -#define STP_STRING_SIZE 20 -#define STP_NUM_STRINGS 4 -#include "runtime.h" - -int main () -{ - String str[4]; - int i; - - for (i = 0; i < 4; i++) - str[i] = _stp_string_init (i); - - _stp_string_cat(str[0], "1234567890"); - _stp_string_cat(str[1], "abc"); - _stp_string_cat(str[2], "ABCDE"); - _stp_string_cat(str[3], "vwxyz"); - - for (i = 0; i < 4; i++) - _stp_print(str[i]); - _stp_print("\n"); - - _stp_string_cat (str[1], "de"); - _stp_print(str[1]); - _stp_print("\n"); - - _stp_string_cat(str[0], str[1]); - _stp_print(str[0]); - _stp_print("\n"); - - _stp_string_cat(str[0], str[2]); - _stp_print(str[0]); - _stp_print("\n"); - - _stp_string_cat(str[0], str[2]); - _stp_print(str[0]); - _stp_print("\n"); - - _stp_sprintf(str[2], "%s\n", _stp_string_ptr(str[3])); - _stp_print(str[2]); - _stp_print_flush(); - return 0; -} |