Skip to content

my_basic bug during save file #54

@jrifuoue

Description

@jrifuoue

Hello!
Im trying to write a file with my_basic,
but my_basic has some bugs.

Full history of my experince:

/ > my_basic
]EDIT -i 0
Line number 0 out of bound.
]Hello World!
]LIST
1]Hello World!
]SAVE text.txt
Done, 1 line saved
src/stdlib.c:139 Assertion failed: 0 && "Invlid address to free"         // cannot save file
ERROR: Failed to eun my_basic: Undefined Error         // crash
/ > ls
    FILE  text.txt  0 bytes
/ > cat text.txt
Failed to open 'text.txt' : Not found         // File doesn't created but ls command detected the file

Is problem from my_basic? Or libc? Or wrong commands?
Please fix it, Thanks.

Dcraftbg, I created an bash script named eznob, this script compiles the nob.c in the currnt directory and then run it with arguments you defined while running. For example, after installing script on your linux distro, Use cd command to jump into your project includes nob.c and nob.h files, then run the eznob, script will ask you for arguments, type arguments if you want and then press enter and enjoy this useful script. You can view the eznob script at here. Please test it (If you can), that is very useful :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions