Opened 10 years ago

Closed 6 years ago

Last modified 6 years ago

#565 closed enhancement (fixed)

scanf family of functions

Reported by: Jiri Svoboda Owned by: Jiri Svoboda
Priority: major Milestone: 0.7.2
Component: helenos/lib/c Version: mainline
Keywords: Cc:
Blocker for: Depends on:
See also:

Description

The *scanf family of functions is missing from HelenOS C library. This is a notable obstacle for porting software as it is quite commonly used.

Change History (7)

comment:1 by Jiri Svoboda, 10 years ago

Component: helenos/unspecifiedhelenos/lib/c
Owner: set to Jakub Jermář

comment:2 by Vojtech Horky, 10 years ago

scanf is currently implemented in libposix. Are there any objections to moving it into libc?

comment:3 by Jiri Svoboda, 10 years ago

Right, I didn't notice because it's defined as posix_scanf(). and ungetc() is there as well. libposix probably has quite a few functions which should actually be in the C library. We could move those, although perhaps that's a nice opportunity to review and improve them.

comment:4 by Jiri Svoboda, 9 years ago

This would be really useful. I don't think the function can be simly copy-and-pasted over since both libc and libposix each use their own stdio virtualization interface.

comment:5 by Jiri Svoboda, 6 years ago

Owner: changed from Jakub Jermář to Jiri Svoboda
Status: newaccepted

Work in progress.

comment:6 by Jiri Svoboda, 6 years ago

Resolution: fixed
Status: acceptedclosed

Commit This is a brand new (correct) implementation.

comment:7 by Jakub Jermář, 6 years ago

Milestone: 0.7.2
Note: See TracTickets for help on using tickets.