summaryrefslogtreecommitdiff
path: root/examples/manual/unput.lex
diff options
context:
space:
mode:
Diffstat (limited to 'examples/manual/unput.lex')
-rw-r--r--examples/manual/unput.lex4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/manual/unput.lex b/examples/manual/unput.lex
index 161471a..21b42dc 100644
--- a/examples/manual/unput.lex
+++ b/examples/manual/unput.lex
@@ -1,6 +1,6 @@
/*
* unput.l : An example of what *not*
- * to do with unput().
+ * to do with yyunput().
*/
@@ -24,7 +24,7 @@ void putback_yytext(void)
strcpy(buffer,yytext);
printf("Got: %s\n",yytext);
for(i=0; i<l; i++){
- unput(buffer[i]);
+ yyunput(buffer[i]);
}
}