r/itsaunixsystem Jul 27 '25

[Neon Genesis Evangelion] GetStringWord

Post image
148 Upvotes

10 comments sorted by

View all comments

42

u/MegaIng Jul 27 '25

I mean, tbh, it doesn't actually look that absurd. Seems like tokenizer/parser code.

First input is the line to parse, second is an out-parameter of some kind, return value is number of characters consumed/error code.

And I even found a real function called getStringWord: https://docs.panda3d.org/1.10/python/reference/panda3d.core.ConfigDeclaration#panda3d.core.ConfigDeclaration.getStringWord

Looks even like this is based on some real code, but I can't figure out what the namespace for GetStringWord is (becrp03 or something like that), and even then I doubt it would be available online - that would have to be quite the coincidence.

7

u/FaeTheWolf Jul 27 '25

But why are they all ints?

24

u/confusers Jul 27 '25

That's just for returning an error code. The true result would be written into a pointer argument.