mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[platform] uniform I/O calls in macOS printenv; formatting
GitOrigin-RevId: 847f6056e2b360ce368ba0bf0bb91e682c2bb3e7
This commit is contained in:
committed by
intellij-monorepo-bot
parent
556d8ecab7
commit
b0a9fa9a4a
@@ -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++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user