about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/HTParse.h
diff options
context:
space:
mode:
Diffstat (limited to 'WWW/Library/Implementation/HTParse.h')
-rw-r--r--WWW/Library/Implementation/HTParse.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/WWW/Library/Implementation/HTParse.h b/WWW/Library/Implementation/HTParse.h
index cb95d722..b6c368fe 100644
--- a/WWW/Library/Implementation/HTParse.h
+++ b/WWW/Library/Implementation/HTParse.h
@@ -1,4 +1,6 @@
-/*                                   HTParse:  URL parsing in the WWW Library
+/*
+ * $LynxId: HTParse.h,v 1.19 2008/12/14 15:31:47 tom Exp $
+ *				HTParse:  URL parsing in the WWW Library
  *				HTPARSE
  *
  *  This module of the WWW library contains code to parse URLs and various
@@ -50,6 +52,19 @@ extern "C" {
  *	All trailing white space is OVERWRITTEN with zero.
  */ extern char *HTStrip(char *s);
 
+/*
+ *	Parse a port number
+ *	-------------------
+ *
+ * On entry,
+ *	host            A pointer to hostname possibly followed by port
+ *
+ * On exit,
+ *	returns         A pointer to the ":" before the port
+ *	sets            the port number via the pointer portp.
+ */
+    extern char *HTParsePort(char *host, int *portp);
+
 /*	Parse a Name relative to another name.			HTParse()
  *	--------------------------------------
  *