#include <wintirpc.h>
#include <stdio.h>
#include <errno.h>
#include <netconfig.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
◆ NP_INVALID
◆ NP_VALID
◆ _get_next_token()
Definition at line 228 of file getnetpath.c.
231{
233 char *np;
234 char *ep;
235
238 }
239
240
241
242 if ((
cp > npp) && (
cp[-1] ==
'\\')) {
243
244 if ((
cp > npp + 1) && (
cp[-2] !=
'\\')) {
245
247
248
249
250
252 }
253 }
254
256
257 ep = npp;
258 while ((np =
strchr(ep,
'\\')) != 0) {
259 if (np[1] == '\\')
260 np++;
261 strcpy(np, (ep = &np[1]));
262 }
264}
char * strcpy(char *DstString, const char *SrcString)
char * strchr(const char *String, int ch)
char * _get_next_token(char *, int)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat token
Referenced by _get_next_token(), getnetpath(), and parse_ncp().
◆ endnetpath()
Definition at line 191 of file getnetpath.c.
193{
196
199 return (-1);
200 }
208 }
210#ifdef MEM_CHK
211 if (malloc_verify() == 0) {
214 }
215#endif
216 return (0);
217}
void freenetconfigent(struct netconfig *netconfigp)
int endnetconfig(void *handlep)
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
struct netpath_chain * nchain_next
struct netpath_chain * ncp_list
Referenced by __rpc_endconf().
◆ getnetpath()
Definition at line 134 of file getnetpath.c.
136{
140 char *npp;
141
145 }
147 do {
151
152 }
153 }
156 }
159 }
160
161
162
165
166
167
175 } else {
176 np_sessionp->
ncp_list->nchain_next = chainp;
177 }
179 }
180
181 }
183}
ACPI_SIZE strlen(const char *String)
struct netconfig * getnetconfigent(char *netid) const
struct netconfig * getnetconfig(void *handlep)
Referenced by __rpc_getconf().
◆ setnetpath()
Definition at line 78 of file getnetpath.c.
79{
80
82 char *npp;
83
84#ifdef MEM_CHK
85 malloc_debug(1);
86#endif
87
88 if ((np_sessionp =
91 }
93
95 }
100 } else {
106 } else {
108 }
109 }
111 return ((void *)np_sessionp);
112}
_Check_return_ char *__cdecl getenv(_In_z_ const char *_VarName)
Referenced by __rpc_setconf().