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

fix restrict ptr translate #168

Merged
merged 12 commits into from
Feb 11, 2024
Merged

fix restrict ptr translate #168

merged 12 commits into from
Feb 11, 2024

Conversation

felipensp
Copy link
Member

Fix #164

#include <stdio.h>
#include <stdlib.h>

int main() {
    char *input = NULL;
    size_t len = 0;
    ssize_t read;
    printf("Enter text (Ctrl+D to quit):\n");
    read = getline(&input, &len, stdin);

    if (read != -1) {
        printf("Entered: %s", input);
    } else {
        printf("error reading input\n");
    }

    free(input);
    return 0;
}

@medvednikov medvednikov merged commit 23fe665 into master Feb 11, 2024
6 checks passed
@medvednikov
Copy link
Member

I fixed the conflict.

Thanks, and sorry for the delay.

Ping me via discord if I miss PRs.

@felipensp felipensp deleted the fix_restrict_ptr_translate branch March 1, 2024 14:07
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.

getline() error: unexpected token *, expecting ,
2 participants