Skip to content

Commit

Permalink
Add support for strtok() subroutine
Browse files Browse the repository at this point in the history
Internal state holds a copy of the string being parsed, along with an
offset where in the string the next strtok(NULL, ...) call should start.
This state cannot overlap the scratch memory used for stack() calls.

Signed-off-by: Eugene Loh <eugene.loh@oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
  • Loading branch information
euloh authored and kvanhees committed Dec 7, 2021
1 parent abc4778 commit 06b4c68
Show file tree
Hide file tree
Showing 32 changed files with 885 additions and 19 deletions.
1 change: 1 addition & 0 deletions bpf/Build
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ bpf_dlib_SOURCES = \
strjoin.S \
strlen.c \
strrchr.S \
strtok.S \
substr.S

bpf-check: $(objdir)/include/.dir.stamp
Expand Down

0 comments on commit 06b4c68

Please sign in to comment.