June 02, 2004 minor std.file documentation bug | ||||
---|---|---|---|---|
| ||||
In the std.file section on http://www.digitalmars.com/d/phobos.html, the description of getcwd shows an argument: char[] getcwd(char[] name) Well, there the compiler won't accept an argument (and I don't know what kind of argument it would expect anyways). It should be: char[] getcwd() ================================= Here's an example: import std.file; import std.c.stdio; void main() { // printf("%.*s\n\n", getcwd("hmm")); /* doesn't compile */ printf("%.*s\n\n", getcwd()); /* returns the current directory */ } -- Justin (a/k/a jcc7) http://jcc_7.tripod.com/d/ |
June 02, 2004 Re: minor std.file documentation bug | ||||
---|---|---|---|---|
| ||||
Posted in reply to J C Calvarese | "J C Calvarese" <jcc7@cox.net> wrote in message news:c9jbnn$31a1$1@digitaldaemon.com... > In the std.file section on http://www.digitalmars.com/d/phobos.html, the description of getcwd shows an argument: > > char[] getcwd(char[] name) > It should be: > char[] getcwd() Good catch. Thanks. |
Copyright © 1999-2021 by the D Language Foundation