PageRenderTime 17ms CodeModel.GetById 10ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/python/li_cdata_runme.py

#
Python | 10 lines | 7 code | 3 blank | 0 comment | 1 complexity | f4e4bd0a7717b4c454ded61c5d37ad24 MD5 | raw file
 1
 2from li_cdata import *
 3
 4s = "ABC abc"
 5m = malloc(256)
 6memmove(m, s)
 7ss = cdata(m, 7)
 8if ss != "ABC abc":
 9  raise "failed"
10