C Functions

BlitzMax Forums/BlitzMax Programming/C Functions

Noel. First thank you very much for the new version. I'll have a look shortly.

There are two reasons for attempting the above.

1. It provides the opportunity to learn more about BlitzMax and the integration with C. Presumably I may derive benefit when it comes time to make use of existing C libraries coupled with my own functions. -- Lastnight was the first time I actually sat down with BM.

2. Thus far I haven't found an equivalent to fprintf, fscanf, or sscanf. At the moment these functions appear to be more flexible for reading and writing tables. Even printf better for many situations. If there really is a better/equivalent BM solution available I'd gladly switch. In the code that I wrote lastnight I'm using previously posted BM functions that at the moment appear too inflexible (which may be a by-product of my novice status). Consequently, I'm exploring.

Edit: hmmm...doesn't appear to work but will investigate later.

Edit2: For the time being I've settled on separating fields with a slash and reading with a BM function.