Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Esteban Blanc
proview
Commits
79e08904
Commit
79e08904
authored
19 years ago
by
claes
Browse files
Options
Download
Email Patches
Plain Diff
ProString added
parent
bcaa379f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
src/lib/co/src/co_cdh.c
src/lib/co/src/co_cdh.c
+12
-1
No files found.
src/lib/co/src/co_cdh.c
View file @
79e08904
/**
* Proview $Id: co_cdh.c,v 1.1
3
2005-09-
01 14:57:52
claes Exp $
* Proview $Id: co_cdh.c,v 1.1
4
2005-09-
20 13:22:40
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -549,8 +549,17 @@ cdh_AttrValueToString (
}
break
;
case
pwr_eType_String
:
case
pwr_eType_Text
:
sprintf
(
sval
,
"%s"
,
(
char
*
)
Value
);
break
;
case
pwr_eType_ProString
:
{
int
len
=
strlen
(
(
char
*
)
Value
);
int
i
;
strcpy
(
sval
,
""
);
for
(
i
=
0
;
i
<
len
;
i
++
)
strcat
(
sval
,
"*"
);
break
;
}
default:
sts
=
CDH__INVTYPE
;
break
;
...
...
@@ -727,6 +736,8 @@ cdh_StringToAttrValue (
break
;
case
pwr_eType_String
:
case
pwr_eType_Text
:
case
pwr_eType_ProString
:
strcpy
(
Value
,
String
);
break
;
...
...
This diff is collapsed.
Click to expand it.
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