[platform] uniform I/O calls in macOS printenv; formatting

GitOrigin-RevId: 847f6056e2b360ce368ba0bf0bb91e682c2bb3e7
This commit is contained in:
Roman Shevchenko
2022-04-22 21:35:54 +00:00
committed by intellij-monorepo-bot
parent 556d8ecab7
commit b0a9fa9a4a
+3 -7
View File
@@ -1,16 +1,12 @@
// Copyright 2000-2021 JetBrains s.r.o. and contributors.
// Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
#include <stdio.h>
int main(int argc __attribute__((unused)),
const char **argv __attribute__((unused)),
const char **env) {
int main(int argc __attribute__((unused)), const char **argv __attribute__((unused)), const char **env) {
const char **v = env;
while (*v != NULL) {
fputs(*v, stdout);
putc('\0', stdout);
fputc('\0', stdout);
v++;
}