diff options
author | Wenji Huang <wenji.huang@oracle.com> | 2009-04-27 04:34:42 -0400 |
---|---|---|
committer | Wenji Huang <wenji.huang@oracle.com> | 2009-04-26 23:04:52 -0400 |
commit | 40fc3e43cea224623400ac07b6f03c700d209dec (patch) | |
tree | a515fed92b082c8f1140c31deb006ef1254fabbc /testsuite/systemtap.printf/char1.stp | |
parent | 9f38e65363878d1e1bc8f51a0ad2cc4fd0316e13 (diff) | |
download | systemtap-steved-40fc3e43cea224623400ac07b6f03c700d209dec.tar.gz systemtap-steved-40fc3e43cea224623400ac07b6f03c700d209dec.tar.xz systemtap-steved-40fc3e43cea224623400ac07b6f03c700d209dec.zip |
Add function of returning the char in given position of string
* tapset/string.stp: New function stringat.
* testsuite/systemtap.printf/char1.exp: Update test case.
* testsuite/systemtap.printf/char1.stp: Ditto.
Diffstat (limited to 'testsuite/systemtap.printf/char1.stp')
-rw-r--r-- | testsuite/systemtap.printf/char1.stp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/systemtap.printf/char1.stp b/testsuite/systemtap.printf/char1.stp index 207d1bc5..564c416b 100644 --- a/testsuite/systemtap.printf/char1.stp +++ b/testsuite/systemtap.printf/char1.stp @@ -3,6 +3,7 @@ probe begin printf("%c", 115) printf("%c", 116) printf("%c%c", 97, 112) + printf("%c%c", stringat("ok", 0), stringat("ok", 1)) print("\n") exit() } |