We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CommandLine.unsafeArgv
nil
1 parent 92652c6 commit 75dfb56Copy full SHA for 75dfb56
stdlib/public/core/CommandLine.swift
@@ -42,8 +42,13 @@ public enum CommandLine {
42
return _argc
43
}
44
45
- /// Access to the raw argv value from C. Accessing the argument vector
46
- /// through this pointer is unsafe.
+ /// Access to the raw argv value from C.
+ ///
47
+ /// The value of this property is a `nil`-terminated C array. Including the
48
+ /// trailing `nil`, there are ``argc`` `+ 1` elements in the array.
49
50
+ /// - Note: Accessing the argument vector through this pointer is unsafe.
51
+ /// Where possible, use ``arguments`` instead.
52
public static var unsafeArgv:
53
UnsafeMutablePointer<UnsafeMutablePointer<Int8>?> {
54
return _unsafeArgv
0 commit comments