Files
openide/native/MacEnvReader/printenv.c
Roman Shevchenko b0a9fa9a4a [platform] uniform I/O calls in macOS printenv; formatting
GitOrigin-RevId: 847f6056e2b360ce368ba0bf0bb91e682c2bb3e7
2022-04-22 21:35:54 +00:00

15 lines
371 B
C

// 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) {
const char **v = env;
while (*v != NULL) {
fputs(*v, stdout);
fputc('\0', stdout);
v++;
}
return 0;
}