summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.string/strlen.stp
blob: 028cf00460e17ed6baf4f46b012e90284c7d0374 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
probe begin
{
        printf("strlen(\"%s\") = %d\n", a, strlen(a))

	a = "1"
        printf("strlen(\"%s\") = %d\n", a, strlen(a))

	a = "0123456789"
        printf("strlen(\"%s\") = %d\n", a, strlen(a))

	a = "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789"
        printf("strlen(\"%s\") = %d\n", a, strlen(a))

        exit()
}