added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / workbench / libs / partition / writepartitiontable.c
blobd1d7624f29b4020acfc2d477f2d375aed8b6d6c3
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 */
7 #include "partition_intern.h"
8 #include "partition_support.h"
9 #include "platform.h"
11 /*****************************************************************************
13 NAME */
14 #include <libraries/partition.h>
16 AROS_LH1(LONG, WritePartitionTable,
18 /* SYNOPSIS */
19 AROS_LHA(struct PartitionHandle *, root, A1),
21 /* LOCATION */
22 struct Library *, PartitionBase, 9, Partition)
24 /* FUNCTION
25 Write a partition table; writing this partition table doesn't affect
26 subpartition tables
28 INPUTS
29 root - partition table to write
31 RESULT
32 0 for success; an error code otherwise
34 NOTES
36 EXAMPLE
38 BUGS
40 SEE ALSO
42 INTERNALS
44 HISTORY
45 21-02-02 first version
47 *****************************************************************************/
49 AROS_LIBFUNC_INIT
51 if (root->table)
53 struct PTFunctionTable *handler = root->table->handler;
55 if (handler->writePartitionTable)
56 return handler->writePartitionTable(PartitionBase, root);
58 return 1;
59 AROS_LIBFUNC_EXIT