Lines Matching full:str
35 char *str, work[256]; in PetscOptionsGetenv() local
58 str = getenv(name); in PetscOptionsGetenv()
59 if (str) flg = PETSC_TRUE; in PetscOptionsGetenv()
60 if (str && env) PetscCall(PetscStrncpy(env, str, len)); in PetscOptionsGetenv()
104 const char *str; in PetscSetDisplay() local
115 str = getenv("DISPLAY"); in PetscSetDisplay()
116 if (!str) str = ":0.0"; in PetscSetDisplay()
126 str = ":15"; in PetscSetDisplay()
129 if (str[0] != ':' || singlehost) { in PetscSetDisplay()
130 PetscCall(PetscStrncpy(display, str, sizeof(display))); in PetscSetDisplay()
133 PetscCall(PetscStrlcat(display, str, sizeof(display))); in PetscSetDisplay()