Improve getprogname/setprogname #1
Labels
No labels
bug
build
critical
documentation
duplicate
enhancement
help wanted
invalid
question
upstream
website
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kitfreemint/util-mint#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently, setprogname do nothing and getprogname returns a litteral string (name of the binary)
Todo:
The pointer progname must point inside argv[0] to skip the path. So, getprogname return the basename
Check if setprogname is called at beginning of main() (because it's automatically done on NetBSD and programs may call getprogname without setprogname)