Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
eaa24206
Commit
eaa24206
authored
Feb 09, 2004
by
Simon Latapie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* http.c: add strsub function: extract substring (doc update will
follow soon).
parent
efc3e61a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
modules/control/http.c
modules/control/http.c
+16
-2
No files found.
modules/control/http.c
View file @
eaa24206
...
...
@@ -2,7 +2,7 @@
* http.c : http mini-server ;)
*****************************************************************************
* Copyright (C) 2001-2004 VideoLAN
* $Id: http.c,v 1.5
1 2004/01/29 17:51:07 zorglub
Exp $
* $Id: http.c,v 1.5
2 2004/02/09 23:03:12 garf
Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Laurent Aimar <fenrir@via.ecp.fr>
...
...
@@ -2705,7 +2705,21 @@ static void EvaluateRPN( mvar_t *vars, rpn_stack_t *st, char *exp )
free
(
s1
);
free
(
s2
);
}
else
if
(
!
strcmp
(
s
,
"strlen"
)
)
else
if
(
!
strcmp
(
s
,
"strsub"
)
)
{
int
n
=
SSPopN
(
st
,
vars
);
int
m
=
SSPopN
(
st
,
vars
);
char
*
s
=
SSPop
(
st
);
char
*
str
=
malloc
(
n
-
m
+
2
);
memcpy
(
str
,
s
+
m
-
1
,
n
-
m
+
1
);
str
[
n
-
m
+
1
]
=
'\0'
;
SSPush
(
st
,
str
);
free
(
s
);
free
(
str
);
}
else
if
(
!
strcmp
(
s
,
"strlen"
)
)
{
char
*
str
=
SSPop
(
st
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment