clang-format
This commit is contained in:
@@ -44,21 +44,16 @@
|
||||
* mv file1 file2 file3 destination-dir
|
||||
*/
|
||||
|
||||
static
|
||||
void
|
||||
dorename(const char *oldfile, const char *newfile)
|
||||
{
|
||||
if (rename(oldfile, newfile)) {
|
||||
err(1, "%s or %s", oldfile, newfile);
|
||||
}
|
||||
static void dorename(const char *oldfile, const char *newfile) {
|
||||
if (rename(oldfile, newfile)) {
|
||||
err(1, "%s or %s", oldfile, newfile);
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
if (argc!=3) {
|
||||
errx(1, "Usage: mv oldfile newfile");
|
||||
}
|
||||
dorename(argv[1], argv[2]);
|
||||
return 0;
|
||||
int main(int argc, char *argv[]) {
|
||||
if (argc != 3) {
|
||||
errx(1, "Usage: mv oldfile newfile");
|
||||
}
|
||||
dorename(argv[1], argv[2]);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user