[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
input is provided thru buffer instead of a file
From: |
Sunil Kumar Jain |
Subject: |
input is provided thru buffer instead of a file |
Date: |
Thu, 20 Dec 2001 18:57:06 +0530 |
Hi;
I'm using bison & flex to parse the rxd bytes.
If inputs (rxd bytes from the network) to the flex, are provided as a char
buffer [instead of a file stream],
which one of the following should be used so that yylex( ) will start
scaning the char buffer?
1. yy_scan_string(const char *str);
2.yy_scan_bytes(const char *bytes,int len);
Pl let me know at the earliest.
regards
sunil
- input is provided thru buffer instead of a file,
Sunil Kumar Jain <=