mirror of https://github.com/hashcat/hashcat.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
429 B
27 lines
429 B
/**
|
|
* Author......: See docs/credits.txt
|
|
* License.....: MIT
|
|
*/
|
|
|
|
#include "common.h"
|
|
#include "types.h"
|
|
#include "ext_nvrtc.h"
|
|
|
|
int nvrtc_make_options_array_from_string (char *string, char **options)
|
|
{
|
|
char *saveptr = NULL;
|
|
|
|
char *next = strtok_r (string, " ", &saveptr);
|
|
|
|
int cnt = 0;
|
|
|
|
do
|
|
{
|
|
options[cnt] = next;
|
|
|
|
cnt++;
|
|
|
|
} while ((next = strtok_r ((char *) NULL, " ", &saveptr)) != NULL);
|
|
|
|
return cnt;
|
|
} |