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

feat: add fputc wrapper to IO #1417

Merged
merged 2 commits into from
Apr 19, 2022
Merged

feat: add fputc wrapper to IO #1417

merged 2 commits into from
Apr 19, 2022

Conversation

scolsen
Copy link
Contributor

@scolsen scolsen commented Apr 18, 2022

fputc is a low-level function that writes a single C character to a
file. We can use this as a basis for more elegant APIs.

The signature matches that of the C standard library function for
compatibility, which takes an Int instead of a char. However, the
documentation notes that the int argument is converted to an unsigned
char.

fputc is a low-level function that writes a single C character to a
file. We can use this as a basis for more elegant APIs.

The signature matches that of the C standard library function for
compatibility, which takes an Int instead of a char. However, the
documentation notes that the int argument is converted to an unsigned
char.
@scolsen
Copy link
Contributor Author

scolsen commented Apr 19, 2022

Looks like the Linux and MacOS CI errors were transient errors related to downloading GHC

core/IO.carp Outdated Show resolved Hide resolved
@eriksvedang eriksvedang merged commit 9d9f982 into carp-lang:master Apr 19, 2022
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.

None yet

2 participants