projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Documented the EXAMINE subcommands. Fixed up the examine test. Fixed a problem...
[pspp]
/
src
/
var-labs.c
diff --git
a/src/var-labs.c
b/src/var-labs.c
index 87916977297c31d7d438b8719a411ec67e713a24..7d78027ed78011bb54bb3de332ba512502ac2449 100644
(file)
--- a/
src/var-labs.c
+++ b/
src/var-labs.c
@@
-68,3
+68,14
@@
cmd_variable_labels (void)
while (token != '.');
return CMD_SUCCESS;
}
while (token != '.');
return CMD_SUCCESS;
}
+
+
+
+const char *
+var_to_string(const struct variable *var)
+{
+ if ( !var )
+ return 0;
+
+ return ( var->label ? var->label : var->name);
+}