diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-18 12:42:04 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-18 12:42:04 +0000 |
commit | 95013cd5c0196f7a7fb0261594dcb74e3588af42 (patch) | |
tree | 668f3b3f5dab349e8c5adcc11a02019c60d4bc0c /README.EXT.ja | |
parent | 6a8d00496a543a2c2489d564cec85effed670107 (diff) | |
download | ruby-95013cd5c0196f7a7fb0261594dcb74e3588af42.tar.gz |
README.EXT: about string termination
* README.EXT (Appendix B): add RSTRING_PTR and RSTRING_LEN.
and NULL-termination by StringValueCStr.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'README.EXT.ja')
-rw-r--r-- | README.EXT.ja | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/README.EXT.ja b/README.EXT.ja index 5a0073e977..ddd91d4dd0 100644 --- a/README.EXT.ja +++ b/README.EXT.ja @@ -1119,6 +1119,8 @@ Data_Get_Struct(data, type, sval) :: rb_integer_pack(value, words, numwords, wordsize, nails, flags), rb_integer_unpack(words, numwords, wordsize, nails, flags) NUM2DBL(value) rb_float_new(f) + RSTRING_LEN(str) + RSTRING_PTR(str) StringValue(value) StringValuePtr(value) StringValueCStr(value) |