Releases: codebysumit/libgetstr
Releases · codebysumit/libgetstr
v1.0.0
GETSTR - Release Notes
Version 1.0.0 - Initial Release
Release Date: July 13, 2025
We are thrilled to announce the inaugural release of GETSTR, a user-friendly C library designed to simplify string input from the console. This first stable version, v1.0.0, introduces a robust and flexible getstrf()
function, aiming to enhance the developer experience by abstracting common complexities of C's standard input operations.
🗝️ Key Highlights
getstrf()
Function: The core of GETSTR, offering printf-style formatted prompts for user interaction.- Dynamic Buffer Allocation: Eliminates the risk of buffer overflows by automatically expanding the input buffer to accommodate strings of any length.
- Cross-Platform Compatibility: Features built-in handling for various line endings (
\n
,\r\n
), ensuring consistent behavior across different operating systems. - Robust Error Handling: Provides clear indications of failure by returning
NULL
on memory allocation issues or immediateEnd-Of-File
conditions. - Simplified
str
Type: Introduces atypedef
forchar * as str
, improving code readability and making string manipulation more intuitive.
🚀 Getting Started
To integrate GETSTR
into your C projects:
- Download: Obtain
getstr.h
andgetstr.c
from the GitHub repository. - Compile: Build the static library (
libgetstr.a
) using your C compiler (e.g.,gcc -c getstr.c
followed by |ar rcs libgetstr.a getstr.o`). - Link: Include
getstr.h
in your source files and link your application withlibgetstr.a
(e.g.,gcc -I./include -L./lib your_app.c -o your_app -lgetstr
).
For a detailed installation guide and usage examples, please refer to the main documentation in the project repository.