o
odin.langpkg.dev
packages / library / Odin--string.index_all--function

Odin--string.index_all--function

fe34ed4library

This is my first program in the Odin prog. language, it's a implementation of a function that doesn't exists in core lib.

No license · updated 3 years ago

Odin programming language - My first program in it

A search for all occurrences of a substring inside a string.

Description

Name:        strings.index_all.odin
Author:      João Carvalho
Date:        2023.08.13
Description: This is my first program in the fantastic Odin programming
             language on Linux.
License:     MIT Open Source License

How to compile and run it

To run this program you need to install the Odin compiler and the Odin ols plugin in your preferred text editor:

# To compile for debug do:

    $ odin build strings.index_all.odin -file -vet -debug
 
# To compile for release do:
 
    $ odin build strings.index_all.odin -file

# To run the program do this:

    $ ./strings

# Or do this:

    $ odin run strings.index_all.odin -file

Links

Have fun - best regards

João Carvalho