Deleted Added
sdiff udiff text old ( 285169 ) new ( 294554 )
full compact
1/**
2 * \file initialize.c
3 *
4 * initialize the libopts data structures.
5 *
6 * @addtogroup autoopts
7 * @{
8 */

--- 83 unchanged lines hidden (view full) ---

92 }
93
94 /*
95 * If the program name hasn't been set, then set the name and the path
96 * and the set of equivalent characters.
97 */
98 if (opts->pzProgName == NULL) {
99 char const * pz = strrchr(pname, DIRCH);
100 char const ** pp =
101 (char const **)(void **)&(opts->pzProgName);
102
103 if (pz != NULL)
104 *pp = pz+1;
105 else
106 *pp = pname;
107
108 pz = pathfind(getenv("PATH"), (char *)pname, "rx");
109 if (pz != NULL)
110 pname = VOIDP(pz);
111
112 pp = (char const **)VOIDP(&(opts->pzProgPath));
113 *pp = pname;
114
115 /*
116 * when comparing long names, these are equivalent

--- 178 unchanged lines hidden ---