Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<Libc> Add support for scanf to accept formatted input. #225

Closed
akashkollipara opened this issue Feb 3, 2023 · 2 comments
Closed

<Libc> Add support for scanf to accept formatted input. #225

akashkollipara opened this issue Feb 3, 2023 · 2 comments
Assignees
Labels
critical update This is a critical update cyancore framework Cyancore framework feature request enhancement Upgrading feature or request FR Add new feature or request
Milestone

Comments

@akashkollipara
Copy link
Member

Is your feature request related to a problem? Please describe.
To read input for console, there are getch and getchar but only limits to 1 byte read.
Using scanf, reads for any format can be achieved.

@akashkollipara akashkollipara added enhancement Upgrading feature or request critical update This is a critical update cyancore framework Cyancore framework feature request FR Add new feature or request labels Feb 3, 2023
@akashkollipara akashkollipara added this to the Boron milestone Feb 3, 2023
@akashkollipara akashkollipara self-assigned this Feb 3, 2023
@akashkollipara akashkollipara modified the milestones: Boron, Carbon Dec 31, 2023
sagarladla added a commit that referenced this issue Apr 29, 2024
input

modified:   src/lib/libc/include/stdio.h
modified:   src/lib/libc/scanf.c

- Support for int, char, string, float format specifiers added for scanf
- Added gets function to accept string with spaces

Issue: #225
@sagarladla
Copy link
Contributor

scanf with int, float, char, string format specifiers and gets function added.

Bugs:

  • character array in scanf not checking for array bound
  • atof function in stdlib skipping fractional part calculation.

sagarladla added a commit that referenced this issue May 25, 2024
input

modified:   src/lib/libc/include/stdio.h
modified:   src/lib/libc/scanf.c

- Support for int, char, string, float format specifiers added for scanf
- Added gets function to accept string with spaces

Issue: #225
sagarladla added a commit that referenced this issue Jun 28, 2024
Optimize printf for fractional point of floating point value

Issue: #225
sagarladla added a commit that referenced this issue Jun 28, 2024
scanf support for multi byte input

Added support for int, long, float, char, string datatype
Added support for value deletion (backspace)

Issue: #225
akashkollipara pushed a commit that referenced this issue Jun 29, 2024
input

modified:   src/lib/libc/include/stdio.h
modified:   src/lib/libc/scanf.c

- Support for int, char, string, float format specifiers added for scanf
- Added gets function to accept string with spaces

Issue: #225
akashkollipara pushed a commit that referenced this issue Jun 29, 2024
Optimize printf for fractional point of floating point value

Issue: #225
akashkollipara pushed a commit that referenced this issue Jun 29, 2024
scanf support for multi byte input

Added support for int, long, float, char, string datatype
Added support for value deletion (backspace)

Issue: #225
akashkollipara added a commit that referenced this issue Jun 29, 2024
…>-Add-support-for-scanf-to-accept-formatted-input

<Libc> Add support for scanf to accept formatted
@akashkollipara
Copy link
Member Author

Closing this issue.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
critical update This is a critical update cyancore framework Cyancore framework feature request enhancement Upgrading feature or request FR Add new feature or request
Projects
None yet
Development

No branches or pull requests

2 participants