Skip to content

Commit

Permalink
Final tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Jun 9, 2017
1 parent 7f11c52 commit 84ff1f8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/unrtf.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#' @param format output format, must be "text", "html" or "latex"
#' @param verbose print some output to stderr
#' @examples library(unrtf)
#' text <- unrtf("http://www-igm.univ-mlv.fr/~mac/ENS/01-projets/XMLV/pelleas/exemples/Sample.rtf")
#' text <- unrtf("https://jeroen.github.io/files/sample.rtf")
#' cat(text)
unrtf <- function(file = NULL, format = c("html", "text", "latex"), verbose = FALSE){
format <- match.arg(format)
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ file path or a URL to a word document:

```r
library(unrtf)
text <- unrtf("http://www-igm.univ-mlv.fr/~mac/ENS/01-projets/XMLV/pelleas/exemples/Sample.rtf")
text <- unrtf("https://jeroen.github.io/files/sample.rtf", format = "text")
html <- unrtf("https://jeroen.github.io/files/sample.rtf", format = "html")
cat(text)
```
2 changes: 1 addition & 1 deletion man/unrtf.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/libunrtf/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
uint32_t ntohl(uint32_t const net);
#else
uint32_t ntohl(uint32_t const net) {
uint8_t data[4] = {};
uint8_t data[4] = {0};
memcpy(&data, &net, sizeof(data));

return ((uint32_t) data[3] << 0)
Expand Down

0 comments on commit 84ff1f8

Please sign in to comment.