glibc/darwin available libraries doc

Hi,

Is there any URL or documentation that contains a list of available libraries through glibc (and darwin as well)? To give it a go, I just tried using plain old “printf” but the compiler produced an error because printf isn’t allowed through Swift.

Nabeel

Hi,

The best I can offer you right now is to fire up the REPL, import Glibc, then use “:type lookup SwiftGlibc” to print all available symbols. To look for a specific one, type that instead, “:type lookup print”.

- mish

···

On Dec 4, 2015, at 5:23 AM, Nabeel Imtiaz <nimtiazm@gmail.com> wrote:

Hi,

Is there any URL or documentation that contains a list of available libraries through glibc (and darwin as well)? To give it a go, I just tried using plain old “printf” but the compiler produced an error because printf isn’t allowed through Swift.

Nabeel
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

1 Like

Is this still the best answer? I can't find any docs for Glibc anywhere either. And for what it's worth, I don't really mean docs for the underlying C modules, but for specifics pertaining to Glibc.