X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=env.cpp;h=3366fc6573ecc5d4289bd6e5ec9768ef074511ef;hb=08eaf3dcc1a68773d5ae340143ad890fdea8648a;hp=3ecf207dabc3d060017bb9278f9ae106ed07dd4b;hpb=f56089cede704dd83f1610f68014081e0f564296;p=nssm.git diff --git a/env.cpp b/env.cpp index 3ecf207..3366fc6 100644 --- a/env.cpp +++ b/env.cpp @@ -1,5 +1,20 @@ #include "nssm.h" +/* + Environment block is of the form: + + KEY1=VALUE1 NULL + KEY2=VALUE2 NULL + NULL + + A single variable KEY=VALUE has length 15: + + KEY=VALUE (13) NULL (1) + NULL (1) + + Environment variable names are case-insensitive! +*/ + /* Find the length in characters of an environment block. */ size_t environment_length(TCHAR *env) { size_t len = 0;