Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
println(String(26, radix: 16)) // prints "1a"
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
import Darwin
|
||||
func string2int(s: String, radix: Int) -> Int {
|
||||
return strtol(s, nil, Int32(radix))
|
||||
// there is also strtoul() for UInt, and strtoll() and strtoull() for Int64 and UInt64, respectively
|
||||
}
|
||||
println(string2int("1a", 16)) // prints "26"
|
||||
Loading…
Add table
Add a link
Reference in a new issue