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 #289

Conversation

sagarladla
Copy link
Contributor

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

src/lib/libc/scanf.c Fixed Show fixed Hide fixed
src/lib/libc/scanf.c Outdated Show resolved Hide resolved
src/lib/libc/scanf.c Outdated Show resolved Hide resolved
src/lib/libc/scanf.c Outdated Show resolved Hide resolved
sagarladla added a commit that referenced this pull request Apr 30, 2024
modified:   src/lib/libc/scanf.c

bug fix for #289 (comment)

- removed usage of macros #289 (comment)
- removed buffer overflow condition #289 (comment)
- variable decalaration in new line #289 (comment)

Issue: #289
src/lib/libc/scanf.c Fixed Show fixed Hide fixed
src/lib/libc/scanf.c Outdated Show resolved Hide resolved
@sagarladla sagarladla marked this pull request as draft April 30, 2024 17:29
sagarladla added a commit that referenced this pull request May 25, 2024
modified:   src/lib/libc/scanf.c

bug fix for #289 (comment)

- removed usage of macros #289 (comment)
- removed buffer overflow condition #289 (comment)
- variable decalaration in new line #289 (comment)

Issue: #289
@sagarladla sagarladla force-pushed the feature/sagarladla/#225-<Libc>-Add-support-for-scanf-to-accept-formatted-input branch from a099ef0 to f213b3a Compare May 25, 2024 21:34
@akashkollipara akashkollipara marked this pull request as ready for review June 29, 2024 03:02
sagarladla and others added 5 commits June 29, 2024 18:17
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
modified:   src/lib/libc/scanf.c

bug fix for #289 (comment)

- removed usage of macros #289 (comment)
- removed buffer overflow condition #289 (comment)
- variable decalaration in new line #289 (comment)

Issue: #289
modified:   src/lib/libc/scanf.c

- buffer allocation modified to heap from stack
Optimize printf for fractional point of floating point value

Issue: #225
scanf support for multi byte input

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

Issue: #225
@akashkollipara akashkollipara force-pushed the feature/sagarladla/#225-<Libc>-Add-support-for-scanf-to-accept-formatted-input branch from 57413e6 to 731b0a3 Compare June 29, 2024 12:47
Copy link
Member

@akashkollipara akashkollipara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @sagarladla !

@akashkollipara akashkollipara merged commit 031b45d into development Jun 29, 2024
2 checks passed
@akashkollipara akashkollipara deleted the feature/sagarladla/#225-<Libc>-Add-support-for-scanf-to-accept-formatted-input branch June 29, 2024 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants