Skip to content
Browse files

Added new macro for reading last character of vString.

  • Loading branch information...
1 parent def5d0d commit b85d2c44262f93f4491859eae799e546be48c7d5 Darren Hiebert committed Jul 7, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 vstring.h
View
1 vstring.h
@@ -35,6 +35,7 @@
#define vStringValue(vs) ((vs)->buffer)
#define vStringItem(vs,i) ((vs)->buffer[i])
+#define vStringLast(vs) ((vs)->buffer[(vs)->length - 1])
#define vStringLength(vs) ((vs)->length)
#define vStringSize(vs) ((vs)->size)
#define vStringCat(vs,s) vStringCatS((vs), vStringValue((s)))

0 comments on commit b85d2c4

Please sign in to comment.
Something went wrong with that request. Please try again.