-// Copyright (C) 2010-2018 Joel Rosdahl
+// Copyright (C) 2010-2020 Joel Rosdahl
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the Free
CHECK_STR_EQ("fourth", args->argv[3]);
CHECK_STR_EQ("fif th", args->argv[4]);
CHECK_STR_EQ("si'x\" th", args->argv[5]);
-#ifndef _WIN32
CHECK_STR_EQ("seve\nth", args->argv[6]);
-#else
- CHECK_STR_EQ("seve\r\nth", args->argv[6]);
-#endif
CHECK(!args->argv[7]);
args_free(args);
}
-// Copyright (C) 2011-2019 Joel Rosdahl
+// Copyright (C) 2011-2020 Joel Rosdahl
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the Free
-// Copyright (C) 2010-2018 Joel Rosdahl
+// Copyright (C) 2010-2020 Joel Rosdahl
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the Free
void
create_file(const char *path, const char *content)
{
- FILE *f = fopen(path, "w");
+ FILE *f = fopen(path, "wb");
if (!f || fputs(content, f) < 0) {
fprintf(stderr, "create_file: %s: %s\n", path, strerror(errno));
}