/[LeafOK_CVS]/lbbs/src/common.c
ViewVC logotype

Diff of /lbbs/src/common.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.9 by sysadm, Mon Apr 28 03:30:59 2025 UTC Revision 1.11 by sysadm, Wed Apr 30 09:18:19 2025 UTC
# Line 15  Line 15 
15   *                                                                         *   *                                                                         *
16   ***************************************************************************/   ***************************************************************************/
17    
18    #include "common.h"
19    #include "log.h"
20  #include "menu.h"  #include "menu.h"
21    #include <string.h>
22  #include <time.h>  #include <time.h>
23  #include <sys/types.h>  #include <sys/types.h>
24  #include <sys/wait.h>  #include <sys/wait.h>
# Line 40  char DB_host[256]; Line 43  char DB_host[256];
43  char DB_username[50];  char DB_username[50];
44  char DB_password[50];  char DB_password[50];
45  char DB_database[50];  char DB_database[50];
46    char DB_timezone[50];
47    
48  // Global declaration for system  // Global declaration for system
49  int SYS_exit;  int SYS_exit;
50  int SYS_child_process_count;  int SYS_child_process_count;
51    
52  // Common function  // Common function
53  const char *  const char *str_space(char *string, int length)
 str_space(char *string, int length)  
54  {  {
55          int i;          int i;
56          for (i = 0; i < length; i++)          for (i = 0; i < length; i++)
# Line 58  str_space(char *string, int length) Line 61  str_space(char *string, int length)
61          return string;          return string;
62  }  }
63    
64  const char *  const char *get_time_str(char *string, size_t length)
 get_time_str(char *string, size_t length)  
65  {  {
66          char week[10], buffer[256];          char week[10], buffer[256];
67          time_t curtime;          time_t curtime;


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1