File: replace_pass.C

package info (click to toggle)
peruser 4b33-6
  • links: PTS
  • area: main
  • in suites: potato
  • size: 2,952 kB
  • ctags: 1,064
  • sloc: cpp: 22,367; perl: 2,733; makefile: 345; sh: 335
file content (19 lines) | stat: -rw-r--r-- 398 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdlib.h>
#include <stdio.h>

#include "npfile.h"
#include "npstringarray.h"
#include "npauthentication.h"

int NP_Authentication::replace_pass( int p, const char *pass )
{
   if ( pass_list.replace_item( p, pass ))
   {
      snprintf( error_message, sizeof error_message, "NP_Authentication: "
                "add(): %s", pass_list.get_error() );
      return 1;
   }

   return 0;
}