Add asctime(), asctime_r(), ctime(), and ctime_r().

This commit is contained in:
Gregory Nutt 2015-06-12 11:52:49 -06:00
parent f5f5a3766a
commit 3b5adf79dc
3 changed files with 5 additions and 4 deletions

View File

@ -308,6 +308,7 @@ config THTTPD_TILDE_MAP2
config THTTPD_GENERATE_INDICES
bool "Generate name indices"
default n
select TIME_EXTENDED
---help---
config THTTPD_USE_URLPATTERN

View File

@ -154,7 +154,7 @@ void httpd_strdecode(char *to, char *from)
/* Copies and encodes a string. */
#ifdef CONFIG_THTTPD_GENERATE_INDICES
static void httpd_strencode(char *to, int tosize, char *from)
void httpd_strencode(char *to, int tosize, char *from)
{
int tolen;

View File

@ -2,7 +2,7 @@
* netutils/thttpd/thttpd_strings.h
* HTTP strings
*
* Copyright (C) 2009 Gregory Nutt. All rights reserved.
* Copyright (C) 2009, 2015 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Derived from the file of the same name in the original THTTPD package:
@ -111,12 +111,12 @@ extern const char html_endhdr2[];
/* Copies and decodes a string. It's ok for from and to to be the same string. */
extern void httpd_strdecode(char *to, char *from);
void httpd_strdecode(char *to, char *from);
/* Copies and encodes a string. */
#ifdef CONFIG_THTTPD_GENERATE_INDICES
extern void httpd_strencode(char *to, int tosize, char *from);
void httpd_strencode(char *to, int tosize, char *from);
#endif
#endif /* CONFIG_THTTPD */