Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2c5433a
commit 76f745b
Showing
18 changed files
with
257 additions
and
1,210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Summary | ||
|
||
Members | Descriptions | ||
--------------------------------|--------------------------------------------- | ||
`public void `[`write_chain_to_file`](#fileio_8h_1a897accbfb97acae9ff091b3dc13921c2)`(Chain chain,Chain filename)` | Set file contents to chain's contents | ||
`public void `[`read_file_to_chain`](#fileio_8h_1a008ca35b36cfa01cebd59a6dddd79671)`(Chain * chain,Chain filename)` | Set chain contents to file's contents | ||
`public FILE * `[`open_file_as_stream`](#fileio_8h_1a4bea31562c5e8ea9a9dbaece1203119f)`(Chain filename,const char * mode)` | | ||
|
||
## Members | ||
|
||
#### `public void `[`write_chain_to_file`](#fileio_8h_1a897accbfb97acae9ff091b3dc13921c2)`(Chain chain,Chain filename)` | ||
|
||
Set file contents to chain's contents | ||
|
||
Open a file and set its contents to that of the chain's. As with other functions, each fraction is converted to a char. An error will be thrown upon any problem opening the file | ||
|
||
#### Parameters | ||
* `chain` The chain being read | ||
|
||
* `filename` A chain holding the filename of the file we're opening | ||
|
||
#### `public void `[`read_file_to_chain`](#fileio_8h_1a008ca35b36cfa01cebd59a6dddd79671)`(Chain * chain,Chain filename)` | ||
|
||
Set chain contents to file's contents | ||
|
||
Open a file and read its contents to the chain's, replacing any previous values(an assign, not append). As with other functions, each char is converted to a fraction. An error will be thrown upon any problem opening the file | ||
|
||
#### Parameters | ||
* `chain` The chain being overwritten | ||
|
||
* `filename` A chain holding the filename of the file we're opening | ||
|
||
#### `public FILE * `[`open_file_as_stream`](#fileio_8h_1a4bea31562c5e8ea9a9dbaece1203119f)`(Chain filename,const char * mode)` | ||
|
||
Generated by [Moxygen](https://sourcey.com/moxygen) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Obedience | ||
File handling | ||
## Operators | ||
### demand obedience of | ||
Read a file to a chain, given a filename | ||
|
||
C Code: | ||
|
||
/* chain/chain overload */ | ||
read_file_to_chain(&LHO, RHO); | ||
|
||
### obey | ||
Write a chain to file, given a filename | ||
|
||
C Code: | ||
|
||
/* chain/chain overload */ | ||
write_chain_to_file(LHO, RHO) | ||
|
||
### serve | ||
Set LHO as a stream pointing to a file, given a filename | ||
|
||
C Code: | ||
|
||
/* stream/chain overload */ | ||
LHO = open_file_as_stream(RHO, "r+b") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.