#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
Go to the source code of this file.
Definition at line 40 of file env.c.
References c, and environ.
45 if (s == NULL || *s == NULL) {
46 printf(
"environment is empty!\n");
57 if (strncmp(*s,
"MBDYN", 5) != 0) {
67 fprintf(stderr,
"error 1\n");
72 fprintf(stderr,
"error 2\n");
79 if (strncmp(p+5,
"_real_", 6) == 0) {
82 printf(
"env=%s, var=%s, val=%s(%e, real)\n",
84 }
else if (strncmp(p+5,
"_integer_", 9) == 0) {
87 printf(
"env=%s, var=%s, val=%s(%ld, integer)\n",
90 fprintf(stderr,
"error 3\n");
95 printf(
"%d entries\n", c);
static std::stack< cleanup * > c