glibc/darwin available libraries doc


(Nabeel Imtiaz) #1

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


(Mish Awadah) #2

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