diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2005-09-27 12:25:11 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2005-09-27 12:25:11 +0000 |
commit | 4095554465fb330ae35a66d2fd108a83afecbee8 (patch) | |
tree | 98f26f394a4c33f36db169278eaeeda0591a152d /parse.c | |
parent | 21cbbd071a3696695490dc94b11238ae6038ff63 (diff) | |
download | rsyslog-4095554465fb330ae35a66d2fd108a83afecbee8.tar.gz rsyslog-4095554465fb330ae35a66d2fd108a83afecbee8.tar.bz2 rsyslog-4095554465fb330ae35a66d2fd108a83afecbee8.zip |
added allowedSender support for TCP
Diffstat (limited to 'parse.c')
-rw-r--r-- | parse.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -453,6 +453,20 @@ int rsParsGetParsePointer(rsParsObj *pThis) return rsCStrLen(pThis->pCStr) - 1; } +/* peek at the character at the parse pointer + * the caller must ensure that the parse pointer is not + * at the end of the parse buffer (e.g. by first calling + * parsIsAtEndOfParseString). + * rgerhards, 2005-09-27 + */ +char parsPeekAtCharAtParsPtr(rsParsObj *pThis) +{ + rsCHECKVALIDOBJECT(pThis, OIDrsPars); + assert(pThis->iCurrPos < rsCStrLen(pThis->pCStr)); + + return(*(pThis->pCStr->pBuf + pThis->iCurrPos)); +} + /* * Local variables: |