It seems like the browser you are using has JavaScript disabled. As a result, the site will not function properly. We really want you to enable it so you may experience our site as we intended it. If you have no idea what we are talking about or if you need help, visit http://www.enable-javascript.com×
This website uses cookies. By continuing to browse this site you are agreeing to our use of cookies. Find out more on our cookie page.×

Oops, it seems like you're using an old browser that we do not fully support. If you're able to, please upgrade your browser here.×
This website uses cookies. By continuing to browse this site you are agreeing to our use of cookies. Find out more on our cookie page.×

Since:

Arguments:

The relative offset from the file position determined by the
whence argument.

whence

The position in the file.
The possible values (defined in <unistd.h>) are:

SEEK_CUR

The new file position is computed relative to the current file
position. The value of offset may be positive, negative or
zero.

SEEK_END

The new file position is computed relative to the end of the file.

SEEK_SET

The new file position is computed relative to the start of the file.
The value of offset must not be negative.

Library:

libc

Use the -l c option to
qcc
to link against this library.
This library is usually included automatically.

Description:

The lseek() and lseek64() functions set the current file position for the file
descriptor specified by filedes at the operating system level.
The lseek64() function is a 64-bit version of lseek().
File descriptors are returned by a successful execution of
one of the
creat(),
dup(),
dup2(),
fcntl(),
open() or
sopen()
functions.

An error occurs if the requested file position is before the start of the
file.

If the requested file position is beyond the end of the file and data is
written at this point, subsequent reads of data in the gap will return bytes
whose value is equal to zero ('\0') until data is actually
written into the gap.

1. Download the tools

Before you start developing, you'll need to visit the Downloads tab. Here you'll find downloads for the BlackBerry 10 Native SDK, BlackBerry 10 Device Simulator, and some other useful tools.

2. Try the sample apps

Now featuring a filter control, the Sample apps tab allows you to search for samples by name or by feature.

Select either the Core or Cascades radio buttons to display the samples relevant to you.

3. Educate yourself

The Documentation tab contains tons of examples, tutorials, and best practices to guide you along the path towards building an awesome app.

You can access all the documentation that you need in the left-hand navigation.

4. Start developing

The Reference tab is where you'll find essential details about how to use our APIs.

You can use the left-hand navigation to choose how you would like to browse the reference: by module, by topic, or alphabetically. If you have an idea of what you are looking for, start typing it in the Filter box.