Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
LOWDOWN_BUF_DIFF(3)    FreeBSD Library Functions Manual	   LOWDOWN_BUF_DIFF(3)

NAME
     lowdown_buf -- parse and diff Markdown buffers into formatted output

LIBRARY
     library "liblowdown"

SYNOPSIS
     #include <sys/queue.h>
     #include <stdio.h>
     #include <lowdown.h>

     int
     lowdown_buf_diff(const struct lowdown_opts	*opts, const char *new,
	 size_t	newsz, const char *old,	size_t oldsz, char **ret,
	 size_t	*retsz,	struct lowdown_metaq *metaq);

DESCRIPTION
     Parses lowdown(5) buffers new of size newsz and old of size oldsz and
     produces an edit script in	ret of size retsz according to configurations
     opts.  The	script defines differences from	old to new.  The output	format
     is	specified by opts-_type.  If LOWDOWN_METADATA is set in	opts-_feat and
     metaq is not NULL,	metaq is filled	with metadata rendered in the given
     output format.

     The caller	is responsible for freeing ret and metaq.

RETURN VALUES
     Returns zero on failure, non-zero on success.  Failure occurs from	memory
     exhaustion.

SEE ALSO
     lowdown(3), lowdown_metaq_free(3)

FreeBSD	13.0		       January 26, 2021			  FreeBSD 13.0

NAME | LIBRARY | SYNOPSIS | DESCRIPTION | RETURN VALUES | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=lowdown_buf_diff&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help