2010-04-02 11:35:12 +00:00
|
|
|
---
|
2014-09-22 10:40:52 +00:00
|
|
|
include/parted/disk.in.h | 5 ++-
|
|
|
|
libparted/disk.c | 2 +
|
|
|
|
libparted/labels/dos.c | 8 ++++++
|
2015-04-24 15:49:30 +00:00
|
|
|
parted/parted.c | 61 ++++++++++++++++++++++++++++++-----------------
|
2014-09-22 10:40:52 +00:00
|
|
|
parted/ui.c | 3 ++
|
2015-04-24 15:49:30 +00:00
|
|
|
5 files changed, 56 insertions(+), 23 deletions(-)
|
2010-04-02 11:35:12 +00:00
|
|
|
|
2015-04-24 15:49:30 +00:00
|
|
|
Index: parted-3.2/include/parted/disk.in.h
|
2009-08-06 20:06:27 +00:00
|
|
|
===================================================================
|
2015-04-24 15:49:30 +00:00
|
|
|
--- parted-3.2.orig/include/parted/disk.in.h
|
|
|
|
+++ parted-3.2/include/parted/disk.in.h
|
|
|
|
@@ -75,10 +75,11 @@ enum _PedPartitionFlag {
|
|
|
|
PED_PARTITION_LEGACY_BOOT=15,
|
|
|
|
PED_PARTITION_MSFT_DATA=16,
|
|
|
|
PED_PARTITION_IRST=17,
|
|
|
|
- PED_PARTITION_ESP=18
|
|
|
|
+ PED_PARTITION_ESP=18,
|
|
|
|
+ PED_PARTITION_TYPE=19
|
- update to parted-3.1 (fate#316110)
- changes in parted-3.1:
* Changes in behavior
- Floppy drives are no longer scanned on linux: they cannot be
partitioned anyhow, and some users have a misconfigured BIOS
that claims to have a floppy when they don't, and scanning
gets hung up.
- parted: the mkpart command has changed semantics with regard
to specifying the end of the partition. If the end is
specified using units of MiB, GiB, etc., parted subtracts one
sector from the specified value. With this change, it is now
possible to create partitions like 1MiB-2MiB, 2MiB-3MiB and
so on.
* Many bugfixes (see changelog)
- changes in parted-3.0:
* Changes in behavior
- Remove all FS-related (file system-related) sub-commands;
these commands are no longer recognized because they were all
dependent on parted "knowing" too much about file system:
mkpartfs, mkfs, cp, move, check.
- 'resize' command changed semantics:
it no longer resizes the filesystem, but only moves end
sector of the partition
- libparted-devel contains libparted-fs-resize library
- add ability to change size of the partition (ignoring contained
filesystem) with 'resize' command; this command has different
semantics than the former 'resize' command which upstream
decided to drop
- parted-resize-command.patch (fate#316110)
- when using syncmbr on POWER, make the first partition type 0x41
OBS-URL: https://build.opensuse.org/package/show/Base:System/parted?expand=0&rev=79
2014-01-09 16:35:35 +00:00
|
|
|
};
|
|
|
|
#define PED_PARTITION_FIRST_FLAG PED_PARTITION_BOOT
|
2015-04-24 15:49:30 +00:00
|
|
|
-#define PED_PARTITION_LAST_FLAG PED_PARTITION_ESP
|
- update to parted-3.1 (fate#316110)
- changes in parted-3.1:
* Changes in behavior
- Floppy drives are no longer scanned on linux: they cannot be
partitioned anyhow, and some users have a misconfigured BIOS
that claims to have a floppy when they don't, and scanning
gets hung up.
- parted: the mkpart command has changed semantics with regard
to specifying the end of the partition. If the end is
specified using units of MiB, GiB, etc., parted subtracts one
sector from the specified value. With this change, it is now
possible to create partitions like 1MiB-2MiB, 2MiB-3MiB and
so on.
* Many bugfixes (see changelog)
- changes in parted-3.0:
* Changes in behavior
- Remove all FS-related (file system-related) sub-commands;
these commands are no longer recognized because they were all
dependent on parted "knowing" too much about file system:
mkpartfs, mkfs, cp, move, check.
- 'resize' command changed semantics:
it no longer resizes the filesystem, but only moves end
sector of the partition
- libparted-devel contains libparted-fs-resize library
- add ability to change size of the partition (ignoring contained
filesystem) with 'resize' command; this command has different
semantics than the former 'resize' command which upstream
decided to drop
- parted-resize-command.patch (fate#316110)
- when using syncmbr on POWER, make the first partition type 0x41
OBS-URL: https://build.opensuse.org/package/show/Base:System/parted?expand=0&rev=79
2014-01-09 16:35:35 +00:00
|
|
|
+#define PED_PARTITION_LAST_FLAG PED_PARTITION_TYPE
|
|
|
|
|
|
|
|
enum _PedDiskTypeFeature {
|
|
|
|
PED_DISK_TYPE_EXTENDED=1, /**< supports extended partitions */
|
2015-04-24 15:49:30 +00:00
|
|
|
Index: parted-3.2/libparted/disk.c
|
- update to parted-3.1 (fate#316110)
- changes in parted-3.1:
* Changes in behavior
- Floppy drives are no longer scanned on linux: they cannot be
partitioned anyhow, and some users have a misconfigured BIOS
that claims to have a floppy when they don't, and scanning
gets hung up.
- parted: the mkpart command has changed semantics with regard
to specifying the end of the partition. If the end is
specified using units of MiB, GiB, etc., parted subtracts one
sector from the specified value. With this change, it is now
possible to create partitions like 1MiB-2MiB, 2MiB-3MiB and
so on.
* Many bugfixes (see changelog)
- changes in parted-3.0:
* Changes in behavior
- Remove all FS-related (file system-related) sub-commands;
these commands are no longer recognized because they were all
dependent on parted "knowing" too much about file system:
mkpartfs, mkfs, cp, move, check.
- 'resize' command changed semantics:
it no longer resizes the filesystem, but only moves end
sector of the partition
- libparted-devel contains libparted-fs-resize library
- add ability to change size of the partition (ignoring contained
filesystem) with 'resize' command; this command has different
semantics than the former 'resize' command which upstream
decided to drop
- parted-resize-command.patch (fate#316110)
- when using syncmbr on POWER, make the first partition type 0x41
OBS-URL: https://build.opensuse.org/package/show/Base:System/parted?expand=0&rev=79
2014-01-09 16:35:35 +00:00
|
|
|
===================================================================
|
2015-04-24 15:49:30 +00:00
|
|
|
--- parted-3.2.orig/libparted/disk.c
|
|
|
|
+++ parted-3.2/libparted/disk.c
|
|
|
|
@@ -2388,6 +2388,8 @@ ped_partition_flag_get_name (PedPartitio
|
2007-01-15 14:29:14 +00:00
|
|
|
return N_("lba");
|
|
|
|
case PED_PARTITION_HPSERVICE:
|
|
|
|
return N_("hp-service");
|
|
|
|
+ case PED_PARTITION_TYPE:
|
|
|
|
+ return N_("type");
|
|
|
|
case PED_PARTITION_PALO:
|
|
|
|
return N_("palo");
|
2009-08-06 20:06:27 +00:00
|
|
|
case PED_PARTITION_PREP:
|
2015-04-24 15:49:30 +00:00
|
|
|
Index: parted-3.2/libparted/labels/dos.c
|
2009-08-06 20:06:27 +00:00
|
|
|
===================================================================
|
2015-04-24 15:49:30 +00:00
|
|
|
--- parted-3.2.orig/libparted/labels/dos.c
|
|
|
|
+++ parted-3.2/libparted/labels/dos.c
|
|
|
|
@@ -1550,6 +1550,10 @@ msdos_partition_set_flag (PedPartition*
|
2007-01-15 14:29:14 +00:00
|
|
|
disk = part->disk;
|
|
|
|
|
|
|
|
switch (flag) {
|
|
|
|
+ case PED_PARTITION_TYPE:
|
|
|
|
+ dos_data->system = state;
|
|
|
|
+ return 1;
|
|
|
|
+
|
|
|
|
case PED_PARTITION_HIDDEN:
|
|
|
|
if (part->type == PED_PARTITION_EXTENDED) {
|
|
|
|
ped_exception_throw (
|
2015-04-24 15:49:30 +00:00
|
|
|
@@ -1657,6 +1661,9 @@ msdos_partition_get_flag (const PedParti
|
2007-01-15 14:29:14 +00:00
|
|
|
case PED_PARTITION_LBA:
|
|
|
|
return dos_data->lba;
|
|
|
|
|
|
|
|
+ case PED_PARTITION_TYPE:
|
|
|
|
+ return dos_data->system;
|
|
|
|
+
|
|
|
|
case PED_PARTITION_PALO:
|
|
|
|
return dos_data->palo;
|
|
|
|
|
2015-04-24 15:49:30 +00:00
|
|
|
@@ -1689,6 +1696,7 @@ msdos_partition_is_flag_available (const
|
2007-01-15 14:29:14 +00:00
|
|
|
case PED_PARTITION_RAID:
|
|
|
|
case PED_PARTITION_LVM:
|
|
|
|
case PED_PARTITION_LBA:
|
|
|
|
+ case PED_PARTITION_TYPE:
|
|
|
|
case PED_PARTITION_PALO:
|
2009-08-06 20:06:27 +00:00
|
|
|
case PED_PARTITION_PREP:
|
2015-04-24 15:49:30 +00:00
|
|
|
case PED_PARTITION_IRST:
|
|
|
|
Index: parted-3.2/parted/parted.c
|
2009-08-06 20:06:27 +00:00
|
|
|
===================================================================
|
2015-04-24 15:49:30 +00:00
|
|
|
--- parted-3.2.orig/parted/parted.c
|
|
|
|
+++ parted-3.2/parted/parted.c
|
|
|
|
@@ -887,28 +887,40 @@ error:
|
- update to parted-3.1 (fate#316110)
- changes in parted-3.1:
* Changes in behavior
- Floppy drives are no longer scanned on linux: they cannot be
partitioned anyhow, and some users have a misconfigured BIOS
that claims to have a floppy when they don't, and scanning
gets hung up.
- parted: the mkpart command has changed semantics with regard
to specifying the end of the partition. If the end is
specified using units of MiB, GiB, etc., parted subtracts one
sector from the specified value. With this change, it is now
possible to create partitions like 1MiB-2MiB, 2MiB-3MiB and
so on.
* Many bugfixes (see changelog)
- changes in parted-3.0:
* Changes in behavior
- Remove all FS-related (file system-related) sub-commands;
these commands are no longer recognized because they were all
dependent on parted "knowing" too much about file system:
mkpartfs, mkfs, cp, move, check.
- 'resize' command changed semantics:
it no longer resizes the filesystem, but only moves end
sector of the partition
- libparted-devel contains libparted-fs-resize library
- add ability to change size of the partition (ignoring contained
filesystem) with 'resize' command; this command has different
semantics than the former 'resize' command which upstream
decided to drop
- parted-resize-command.patch (fate#316110)
- when using syncmbr on POWER, make the first partition type 0x41
OBS-URL: https://build.opensuse.org/package/show/Base:System/parted?expand=0&rev=79
2014-01-09 16:35:35 +00:00
|
|
|
static char*
|
|
|
|
partition_print_flags (PedPartition const *part)
|
|
|
|
{
|
|
|
|
- char *res = xstrdup ("");
|
|
|
|
- if (!part)
|
|
|
|
- return res;
|
2007-01-15 14:29:14 +00:00
|
|
|
-
|
- update to parted-3.1 (fate#316110)
- changes in parted-3.1:
* Changes in behavior
- Floppy drives are no longer scanned on linux: they cannot be
partitioned anyhow, and some users have a misconfigured BIOS
that claims to have a floppy when they don't, and scanning
gets hung up.
- parted: the mkpart command has changed semantics with regard
to specifying the end of the partition. If the end is
specified using units of MiB, GiB, etc., parted subtracts one
sector from the specified value. With this change, it is now
possible to create partitions like 1MiB-2MiB, 2MiB-3MiB and
so on.
* Many bugfixes (see changelog)
- changes in parted-3.0:
* Changes in behavior
- Remove all FS-related (file system-related) sub-commands;
these commands are no longer recognized because they were all
dependent on parted "knowing" too much about file system:
mkpartfs, mkfs, cp, move, check.
- 'resize' command changed semantics:
it no longer resizes the filesystem, but only moves end
sector of the partition
- libparted-devel contains libparted-fs-resize library
- add ability to change size of the partition (ignoring contained
filesystem) with 'resize' command; this command has different
semantics than the former 'resize' command which upstream
decided to drop
- parted-resize-command.patch (fate#316110)
- when using syncmbr on POWER, make the first partition type 0x41
OBS-URL: https://build.opensuse.org/package/show/Base:System/parted?expand=0&rev=79
2014-01-09 16:35:35 +00:00
|
|
|
- PedPartitionFlag flag;
|
|
|
|
- size_t res_buf_len = 1;
|
|
|
|
- char const *sep = "";
|
|
|
|
- for (flag = ped_partition_flag_next (0); flag;
|
|
|
|
- flag = ped_partition_flag_next (flag))
|
|
|
|
- {
|
|
|
|
- if (ped_partition_get_flag (part, flag))
|
|
|
|
+ int xtype;
|
|
|
|
+ char *res = xstrdup ("");
|
|
|
|
+ if (!part)
|
|
|
|
+ return res;
|
|
|
|
+
|
|
|
|
+ PedPartitionFlag flag;
|
|
|
|
+ size_t res_buf_len = 1;
|
|
|
|
+ char const *sep = "";
|
|
|
|
+ for (flag = ped_partition_flag_next (0); flag;
|
|
|
|
+ flag = ped_partition_flag_next (flag))
|
|
|
|
{
|
|
|
|
- const char *name = _(ped_partition_flag_get_name (flag));
|
|
|
|
- size_t new_len = res_buf_len + strlen (sep) + strlen (name);
|
|
|
|
- res = xrealloc (res, new_len);
|
|
|
|
- stpcpy (stpcpy (res + res_buf_len - 1, sep), name);
|
|
|
|
- res_buf_len = new_len;
|
|
|
|
- sep = ", ";
|
|
|
|
+ if (xtype = ped_partition_get_flag (part, flag))
|
|
|
|
+ {
|
|
|
|
+ if (flag == PED_PARTITION_TYPE) {
|
|
|
|
+ char tmpstr[21];
|
|
|
|
+ int len = snprintf(tmpstr, sizeof(tmpstr) - 1, "type=%02x", xtype);
|
|
|
|
+ size_t new_len = res_buf_len + strlen(sep) + strlen(tmpstr);
|
|
|
|
+ res = xrealloc(res, new_len);
|
|
|
|
+ stpcpy (stpcpy (res + res_buf_len - 1, sep), tmpstr);
|
|
|
|
+ res_buf_len = new_len;
|
|
|
|
+ sep = ", ";
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ const char *name = _(ped_partition_flag_get_name (flag));
|
|
|
|
+ size_t new_len = res_buf_len + strlen (sep) + strlen (name);
|
|
|
|
+ res = xrealloc (res, new_len);
|
|
|
|
+ stpcpy (stpcpy (res + res_buf_len - 1, sep), name);
|
|
|
|
+ res_buf_len = new_len;
|
|
|
|
+ sep = ", ";
|
|
|
|
+ }
|
2009-08-06 20:06:27 +00:00
|
|
|
+ }
|
|
|
|
}
|
- update to parted-3.1 (fate#316110)
- changes in parted-3.1:
* Changes in behavior
- Floppy drives are no longer scanned on linux: they cannot be
partitioned anyhow, and some users have a misconfigured BIOS
that claims to have a floppy when they don't, and scanning
gets hung up.
- parted: the mkpart command has changed semantics with regard
to specifying the end of the partition. If the end is
specified using units of MiB, GiB, etc., parted subtracts one
sector from the specified value. With this change, it is now
possible to create partitions like 1MiB-2MiB, 2MiB-3MiB and
so on.
* Many bugfixes (see changelog)
- changes in parted-3.0:
* Changes in behavior
- Remove all FS-related (file system-related) sub-commands;
these commands are no longer recognized because they were all
dependent on parted "knowing" too much about file system:
mkpartfs, mkfs, cp, move, check.
- 'resize' command changed semantics:
it no longer resizes the filesystem, but only moves end
sector of the partition
- libparted-devel contains libparted-fs-resize library
- add ability to change size of the partition (ignoring contained
filesystem) with 'resize' command; this command has different
semantics than the former 'resize' command which upstream
decided to drop
- parted-resize-command.patch (fate#316110)
- when using syncmbr on POWER, make the first partition type 0x41
OBS-URL: https://build.opensuse.org/package/show/Base:System/parted?expand=0&rev=79
2014-01-09 16:35:35 +00:00
|
|
|
- }
|
2009-08-06 20:06:27 +00:00
|
|
|
|
- update to parted-3.1 (fate#316110)
- changes in parted-3.1:
* Changes in behavior
- Floppy drives are no longer scanned on linux: they cannot be
partitioned anyhow, and some users have a misconfigured BIOS
that claims to have a floppy when they don't, and scanning
gets hung up.
- parted: the mkpart command has changed semantics with regard
to specifying the end of the partition. If the end is
specified using units of MiB, GiB, etc., parted subtracts one
sector from the specified value. With this change, it is now
possible to create partitions like 1MiB-2MiB, 2MiB-3MiB and
so on.
* Many bugfixes (see changelog)
- changes in parted-3.0:
* Changes in behavior
- Remove all FS-related (file system-related) sub-commands;
these commands are no longer recognized because they were all
dependent on parted "knowing" too much about file system:
mkpartfs, mkfs, cp, move, check.
- 'resize' command changed semantics:
it no longer resizes the filesystem, but only moves end
sector of the partition
- libparted-devel contains libparted-fs-resize library
- add ability to change size of the partition (ignoring contained
filesystem) with 'resize' command; this command has different
semantics than the former 'resize' command which upstream
decided to drop
- parted-resize-command.patch (fate#316110)
- when using syncmbr on POWER, make the first partition type 0x41
OBS-URL: https://build.opensuse.org/package/show/Base:System/parted?expand=0&rev=79
2014-01-09 16:35:35 +00:00
|
|
|
- return res;
|
|
|
|
+ return res;
|
2009-08-06 20:06:27 +00:00
|
|
|
}
|
- update to parted-3.1 (fate#316110)
- changes in parted-3.1:
* Changes in behavior
- Floppy drives are no longer scanned on linux: they cannot be
partitioned anyhow, and some users have a misconfigured BIOS
that claims to have a floppy when they don't, and scanning
gets hung up.
- parted: the mkpart command has changed semantics with regard
to specifying the end of the partition. If the end is
specified using units of MiB, GiB, etc., parted subtracts one
sector from the specified value. With this change, it is now
possible to create partitions like 1MiB-2MiB, 2MiB-3MiB and
so on.
* Many bugfixes (see changelog)
- changes in parted-3.0:
* Changes in behavior
- Remove all FS-related (file system-related) sub-commands;
these commands are no longer recognized because they were all
dependent on parted "knowing" too much about file system:
mkpartfs, mkfs, cp, move, check.
- 'resize' command changed semantics:
it no longer resizes the filesystem, but only moves end
sector of the partition
- libparted-devel contains libparted-fs-resize library
- add ability to change size of the partition (ignoring contained
filesystem) with 'resize' command; this command has different
semantics than the former 'resize' command which upstream
decided to drop
- parted-resize-command.patch (fate#316110)
- when using syncmbr on POWER, make the first partition type 0x41
OBS-URL: https://build.opensuse.org/package/show/Base:System/parted?expand=0&rev=79
2014-01-09 16:35:35 +00:00
|
|
|
|
|
|
|
static int
|
2015-04-24 15:49:30 +00:00
|
|
|
@@ -1726,12 +1738,19 @@ do_set (PedDevice** dev, PedDisk **diskp
|
|
|
|
goto error;
|
2007-01-15 14:29:14 +00:00
|
|
|
if (!command_line_get_part_flag (_("Flag to Invert?"), part, &flag))
|
2015-04-24 15:49:30 +00:00
|
|
|
goto error;
|
|
|
|
- state = (ped_partition_get_flag (part, flag) == 0 ? 1 : 0);
|
|
|
|
+ if( flag == PED_PARTITION_TYPE )
|
|
|
|
+ state = ped_partition_get_flag (part, flag);
|
|
|
|
+ else
|
|
|
|
+ state = (ped_partition_get_flag (part, flag) == 0 ? 1 : 0);
|
2009-08-06 20:06:27 +00:00
|
|
|
|
2007-01-15 14:29:14 +00:00
|
|
|
- if (!is_toggle_mode) {
|
|
|
|
+ if (!is_toggle_mode && flag != PED_PARTITION_TYPE ) {
|
|
|
|
if (!command_line_get_state (_("New state?"), &state))
|
2015-04-24 15:49:30 +00:00
|
|
|
goto error;
|
2007-01-15 14:29:14 +00:00
|
|
|
}
|
2015-04-24 15:49:30 +00:00
|
|
|
+ else if( flag == PED_PARTITION_TYPE ) {
|
|
|
|
+ if (!command_line_get_integer (_("New type?"), &state))
|
|
|
|
+ goto error;
|
|
|
|
+ }
|
2009-08-06 20:06:27 +00:00
|
|
|
|
2007-01-15 14:29:14 +00:00
|
|
|
if (!ped_partition_set_flag (part, flag, state))
|
2015-04-24 15:49:30 +00:00
|
|
|
goto error;
|
|
|
|
Index: parted-3.2/parted/ui.c
|
- update to parted-3.1 (fate#316110)
- changes in parted-3.1:
* Changes in behavior
- Floppy drives are no longer scanned on linux: they cannot be
partitioned anyhow, and some users have a misconfigured BIOS
that claims to have a floppy when they don't, and scanning
gets hung up.
- parted: the mkpart command has changed semantics with regard
to specifying the end of the partition. If the end is
specified using units of MiB, GiB, etc., parted subtracts one
sector from the specified value. With this change, it is now
possible to create partitions like 1MiB-2MiB, 2MiB-3MiB and
so on.
* Many bugfixes (see changelog)
- changes in parted-3.0:
* Changes in behavior
- Remove all FS-related (file system-related) sub-commands;
these commands are no longer recognized because they were all
dependent on parted "knowing" too much about file system:
mkpartfs, mkfs, cp, move, check.
- 'resize' command changed semantics:
it no longer resizes the filesystem, but only moves end
sector of the partition
- libparted-devel contains libparted-fs-resize library
- add ability to change size of the partition (ignoring contained
filesystem) with 'resize' command; this command has different
semantics than the former 'resize' command which upstream
decided to drop
- parted-resize-command.patch (fate#316110)
- when using syncmbr on POWER, make the first partition type 0x41
OBS-URL: https://build.opensuse.org/package/show/Base:System/parted?expand=0&rev=79
2014-01-09 16:35:35 +00:00
|
|
|
===================================================================
|
2015-04-24 15:49:30 +00:00
|
|
|
--- parted-3.2.orig/parted/ui.c
|
|
|
|
+++ parted-3.2/parted/ui.c
|
|
|
|
@@ -913,6 +913,9 @@ command_line_get_integer (const char* pr
|
- update to parted-3.1 (fate#316110)
- changes in parted-3.1:
* Changes in behavior
- Floppy drives are no longer scanned on linux: they cannot be
partitioned anyhow, and some users have a misconfigured BIOS
that claims to have a floppy when they don't, and scanning
gets hung up.
- parted: the mkpart command has changed semantics with regard
to specifying the end of the partition. If the end is
specified using units of MiB, GiB, etc., parted subtracts one
sector from the specified value. With this change, it is now
possible to create partitions like 1MiB-2MiB, 2MiB-3MiB and
so on.
* Many bugfixes (see changelog)
- changes in parted-3.0:
* Changes in behavior
- Remove all FS-related (file system-related) sub-commands;
these commands are no longer recognized because they were all
dependent on parted "knowing" too much about file system:
mkpartfs, mkfs, cp, move, check.
- 'resize' command changed semantics:
it no longer resizes the filesystem, but only moves end
sector of the partition
- libparted-devel contains libparted-fs-resize library
- add ability to change size of the partition (ignoring contained
filesystem) with 'resize' command; this command has different
semantics than the former 'resize' command which upstream
decided to drop
- parted-resize-command.patch (fate#316110)
- when using syncmbr on POWER, make the first partition type 0x41
OBS-URL: https://build.opensuse.org/package/show/Base:System/parted?expand=0&rev=79
2014-01-09 16:35:35 +00:00
|
|
|
NULL, 1);
|
|
|
|
if (!input)
|
|
|
|
return 0;
|
|
|
|
+ if (strstr(input, "0x") == input)
|
|
|
|
+ valid = sscanf (input, "%x", value);
|
|
|
|
+ else
|
|
|
|
valid = sscanf (input, "%d", value);
|
|
|
|
free (input);
|
|
|
|
return valid;
|