delorie.com/djgpp/doc/libc/libc_869.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

write_sel_addr

Syntax

 
#include <debug/dbgcom.h>

void write_sel_addr (unsigned sel, unsigned offset,
                     void *buf, unsigned len);

Description

This function transfers len bytes from the buffer pointed to by buf in the data segment whose selector is sel, at offset offset. The companion function read_sel_addr (see section read_sel_addr) is usually called before write_sel_addr to save the original contents, if needed.

Return Value

The function return zero if it has successfully transferred the data, non-zero otherwise (e.g., if the address in offset is outside the limits of the sels segment).

Portability

ANSI/ISO C No
POSIX No


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004